开发者

Reapply jquery functions

What is the best way to reapply functio开发者_开发百科ns in jquery? I do not want to use the live() function. An AJAX-request adds new items to my page and I want to make all of my jquery functions work on them.

How can I realign that jquery functions best, beside of live()?

Thanks!


If you really dont want to use live(), you can just run the jquery again after the items are added to the page in the ajax request.


You can use delegate(). look here for documentation

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜