Using jQuery .on() and .off()

Posted: November 23, 2011 Comments

Using jQuery .on() and .off() –

jQuery’s .live() caught on like wildfire, and for good reason. Unfortunately, as with most good things, it got abused. It was misused to the extent of the jQuery team deprecating it as of version 1.7 (currently at 1.7.1 at the time of this posting) and replacing it with .on().

Along with an explanation of the new function, this article explains very well some other aspects to the changes in jQuery 1.7+ that you should keep in mind and in practice.

Get my newsletter

Receive periodic updates right in the mail!

  • This field is for validation purposes and should be left unchanged.

Leave a Reply

Your email address will not be published. Required fields are marked *