Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Friday, February 15, 2013

Always having the latest version of jQuery

When you develop your website you'll have to use the latest version of jQuery . So you'll download the latest version from http://jquery.com/ or some other site and add it to your project.

So far so good but what happens when jQuery will release a new version?
You'll re download it and update your site every time?
Perhaps. Or you can add this line to your master page/layout:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
This way you reference the google hosted jquery.js file of the latest version, which is regularly updated.

You can also add the latest jQuery-ui.js file:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
What about the jQuery-ui.css?You got it!
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/pepper-grinder/jquery-ui.css" type="text/css" />

Stay updated.