InterviewSolution
| 1. |
How To Always Reference Latest Version Of Jquery? |
|
Answer» When you REFERENCE the jQuery on your web page, you have to specify the version number also. <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. When you reference the jQuery on your web page, you have to specify the version number also. 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 This code will always reference the latest version of jQuery in your page. |
|