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/