开发者

Reapply jquery functions

开发者 https://www.devze.com 2023-03-17 23:32 出处:网络
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 wo

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

精彩评论

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