Nitin Choudhary
Which command will give a version of jQuery?
By Nitin Choudhary in .NET on Jan 20 2015
  • sajidlkhan lodi
    Feb, 2015 19

    alert( ' jQuery version is: ' + $().jquery);

    • 1
  • Shivam Shukla
    Feb, 2015 18

    alert( 'Your are jQuery version is: ' + $.fn.jquery ); alert( 'Your are jQuery version is: ' + jQuery.fn.jquery) alert( 'Your are jQuery version is: ' + $().jquery) alert( 'Your are jQuery version is: ' + $()['jquery']) alert( 'Your are jQuery version is: ' + $()['jquery']) /*this will give result in Developers Console*/ console.log($());

    • 1
  • Afzaal Ahmad Zeeshan
    Mar, 2015 8

    You can use this command: if (typeof jQuery != 'undefined') { // jQuery is loaded => print the versionalert(jQuery.fn.jquery); }It would check for jQuery, if defined, then it would alert the version. From: http://stackoverflow.com/questions/6973941/how-to-check-what-version-of-jquery-is-loaded

    • 0
  • Afzaal Ahmad Zeeshan
    Mar, 2015 8

    You can use this command: if (typeof jQuery != 'undefined') { // jQuery is loaded => print the versionalert(jQuery.fn.jquery); }It would check for jQuery, if defined, then it would alert the version. From: http://stackoverflow.com/questions/6973941/how-to-check-what-version-of-jquery-is-loaded

    • 0
  • chapala markandeyulu
    Feb, 2015 10

    $.fn.jquery returns JQuery version

    • 0
  • Nitin Choudhary
    Jan, 2015 20

    The command $.ui.version returns jQuery UI version.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS