You are here

jQuery Installation

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 type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js">...

You can use other CDN also. At times you might want to include the js as part of your deployable aka war, then the path to pick jQuery need to be modified accordingly. A typical jQuery based javascript can be written in following format
 

<script type="text/javascript">
		$(document).ready(function() {
			
		});
	</script>

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.

Add new comment