The reason for the error is that this method was abolished after jQuery 1.7
The. On () method is used in versions after 1.7
Previous usage:
.live(events, function)
New method:
.on(eventType, selector, function)
Exaple:
Before:
$('#myid').live('click', function{ alert(1) })
After:
$('body').on('click', '#myid', function{ alert(1) })
Similar Posts:
- Error in JS function referencing public page [How to Solve]
- [jQuery version] cannot read property ‘MSIE’ of undefined solution
- JQuery Error: TypeError: jQuery.curCSS is not a function [How to Solve]
- When parsing background JSON data with Ajax: unexpected token o in JSON at position 1
- The full calendar obtains the events report uncaught type error: callback is not a function from the background
- ZooKeeper Startup Error: Error contacting service. It is probably not running
- The Difference between $(document).ready, window.onload and $(window).load(function (){})
- [How to Solve] Cannot set property ‘onclick’ of null
- Webstorm8.0.3 live edit and Google browser real time automatic loading page without refresh
- Fatal error: Call-time pass-by-reference has be…