[jQuery] Re: Dynamic img not getting events

2009-11-01 Thread k3liutZu
You can use jQuery's bundeled .live() method. $('#ajaxElement').live('click', function(){ doSomething(); }); On 31 oct., 18:38, JT wrote: > To bind events, such as 'click', to elements that are added to the > page dynamically, as with AJAX, you can use a plugin like livequery. > You can read s

[jQuery] Re: Dynamic img not getting events

2009-10-31 Thread JT
To bind events, such as 'click', to elements that are added to the page dynamically, as with AJAX, you can use a plugin like livequery. You can read some more here http://docs.jquery.com/Plugins/livequery and get the plugin.