Wednesday, December 12, 2018

.live is not a function

.live in jQuery is no more. Use .on from now on. So this...

$("#goBack").live('click', function() {

 
 

...has to become this:

$("#goBackWrapper").on('click', '#goBack', function() {

 
 

You have to reference the element inside of the element you wish to affect with the live effect now and that really sucks! :(

No comments:

Post a Comment