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
since there is no jquery version that us more than one digit, you can safely use
if ([$.fn.jquery,"1.6"].sort()[0] == "1.6") { // jquery version greater or same as 1.6 } else { // jquery version lower than 1.6 }