Event Delegation trong jQuery

Print Friendly, PDF & Email

Event delegation là cách để giải quyết vấn vấn đề: trong những đoạn html được cập nhật bằng ajax (ajax updated content).


Tham khảo

https://learn.jquery.com/events/event-delegation/

https://blog.revathskumar.com/2013/10/jquery-on-avoid-losing-event-binding-for-ajaxed-contents.html

https://aiocollective.com/blog/click-doesn-t-work-after-ajax-load-jquery/

Leave a Reply

Your email address will not be published. Required fields are marked *

*

code

This site uses Akismet to reduce spam. Learn how your comment data is processed.