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

naresh
Jan 19, 2015  ·  1243 views
jquery cdn 

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.

AUTHOR

naresh


Post a comment




Thank you! You are now subscribed.

Sign up for our newsletter

Subscribe to receive updates on our latest posts.

Thank you! You are now subscribed.