Wednesday, July 9, 2014

jQuery('selector').on is not a function

I'm using jQuery 1.7.2 and live("click",function(){}) works but not on("click",fucntion(){}) i get jQuery("whatever").on is not a function.

I'm sure the 1.7.2 is loading.



Solution:

If you load 1.7.2 and then load an older jQuery version, you would get that error.


ref:
http://forum.jquery.com/topic/jquery-selector-on-is-not-a-function

No comments:

MS in Computer Science with paid training in USA company