سؤال

When I use the following, I see all divs static and dynamic one by one including the dynamically added div #xyz

jQuery('div').livequery(function() { alert($(this).attr("id") + " div added") })

but when I use

jQuery('#xyz').livequery(function() { alert($(this).attr("id") + " div added") })

I get nothing. However - if xyz was in static html, the above works.

Eventually I want to be able to click a button programmatically when added dynamically.

Any help is appreciated.

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top