I know that jQuery.fn.jquery
gives me 1.10.2
, and I want to use .on
binding for anything at least jQuery version 1.7
.
What I'm doing is:
var jQueryFloat = parseFloat(jQuery.fn.jquery); // 1.1
if (jQueryFloat >= 1.7) {
// do jQuery 1.7 and above specific code
}
1.1 is less than 1.7, so my jQuery 1.7 and above code does not get run.
Any ideas on another way to figure out if my current version of jQuery is greater than or equal to 1.7
? Thanks.