6
Reply

Which command will give a version of jQuery?

Nitin Choudhary

Nitin Choudhary

Jan 20, 2015
2.1k
0

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

    sajidlkhan lodi
    February 19, 2015
    1

    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($());

    Shivam Shukla
    February 18, 2015
    1

    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

    Afzaal Ahmad Zeeshan
    March 08, 2015
    0

    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

    Afzaal Ahmad Zeeshan
    March 08, 2015
    0

    $.fn.jquery returns JQuery version

    chapala markandeyulu
    February 10, 2015
    0

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

    Nitin Choudhary
    January 20, 2015
    0