When writing a new jQuery plugin is there a straightforward way of checking that the current version of jQuery is above a certain number? Displaying a warning or logging an error otherwise.
It would be nice to do something like:
jQuery.version >= 1.2.6
in some form or another.
Pass version as array of integers, like
jQmin([1,4,2])
to check if the current version is equal or above v1.4.2.Something like that?
It checks if jQuery is loaded, and if it is, checks the version. This method works correct for 2 digit version numbers too (1.10.28), and if needed you can extend it for 3 digits, if you replace the 100 numbers to 1000...
See my answer here: jQuery Version Compatibility Detection