I recently updated jQuery from 1.8 to 2.1. I suddenly discovered that the .live() stops working. I get the error TypeError: $(...).live is not a funct
.live()
TypeError: $(...).live is not a funct
You can avoid refactoring your code by including the following JavaScript code
jQuery.fn.extend({ live: function (event, callback) { if (this.selector) { jQuery(document).on(event, this.selector, callback); } return this; } });