开发者

How Can I add(prepend) an image when I clicked the dynamic element

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜