jquery: on vs live
问题 I am curious why when I replace .live() with .on() my events don't work after inserting AJAX's response via html() method. Assume I have html structure: <div class="a"> <a href="" class="alert-link">alert</a> <a href="" class="ajax-update">update</a> </div> and jquery code something like: $('.alert-link').on("click", function(){ alert('abc'); return false; }); and ajax-update will trigger request, which response will be alert update and I will insert it into parent() . Then pressing again