Saturday, August 16, 2014

jQuery Introduction

jQuery is powerful yet easy to use cross browser compatible wrapper over javascript. Using java script is as simple as including the scripts in your html/jsp files. A typical inclusion of jQuery using Google CDN is 

<script src="//"></script>
You might want to check the latest version of the jQuery. You can use other CDN also. 
At times you might want to include the javascript as part of your deployable aka server code, then the path to pick jQuery need to be modified accordingly. The above inclusion will bring the minified version. For debugging purpose it's at time useful to work with full versions

A typical jQuery based javascript can be written in following format
 <script type="text/javascript">
$(document).ready(function() {
You can put your code in between.
Apart from that you might want to look into various jQuery plugins which are infinite in number. For UI you might want to look into jQuery-UI plugin.

No comments:

Post a Comment