I want to prepend an image.When I clicked element(this)
and my items becoming dynamic..
How can I do that? Sorry 开发者_StackOverflowabout my english
try live
jQuery('#idOfElement').live('click' ,function() {
jQuery(this).prepend('<img src="">');
});
live: Attach a handler to the event for all elements which match the current selector, now and in the future.
精彩评论