You can always refer to the latest version of jQuery...

jquery  cdn 
- naresh on Jan 19 '15 at 11:55
- viewed 767 times

When you reference the jQuery on your web page, you have to specify the version number also. There is also a way to always load the latest jQuery library file from google CDN. Here is one such example.

<script type=”text/javascript”
src=”http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js”>
</script>

Above code will always load the 1.5.1 version of jQuery. If you reference the latest jQuery then you don’t need to change the code every time the new version of jQuery is released.

To achieve this you have to use following code

<script type=”text/javascript”
src=”http://code.jquery.com/jquery-latest.min.js”>
</script>

This code will always reference the latest version of jQuery in your page.



About the author

naresh



Leave your comments on this post here