It is sometimes required to check the currently using jQuery version so that if needed then you can write version specific code. In this short post, you will find that there are two ways by which you can find the jQuery version.
For example, I am using jQuery 1.7.2 version
Alternate Method:
For example, I am using jQuery 1.7.2 version
<script type="text/javascript"src="Script/jquery-1.7.2.js"></script>Method 1
$(document).ready(function() { alert($().jquery); });It will display 1.7.2 in alert.
Alternate Method:
$(document).ready(function() { alert(jQuery.fn.jquery); });Feel free to contact me for any help related to jQuery. I will gladly help you.
No comments:
Post a Comment