jQuery’s documentation shows you would replace
$(selector).live(event, handler)
with
$(document).on(event, selector, handler)
Also you have the option to be more precise and replace $(document)
with a selector for a static parent of the element. For example, if you have a static table
element and tr
elements are added dynamically to the DOM, you could do something like $('table#id').on('click', 'tr', ...)