SOLVED – jQuery(‘selector’).on is not a function

The jquery function jQuery(‘selector’).on is not available in old version of jQuery than 1.9.

.live() removed

The .live() method has been deprecated since jQuery 1.7 and has been removed in 1.9. We recommend upgrading code to use the .on() method instead. To exactly match $("a.foo").live("click", fn), for example, you can write $(document).on("click", "a.foo", fn). For more information, see the .on() documentation. In the meantime, the jQuery Migrate plugin can be used to restore the .live() functionality.

Leave a Comment

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