Tuesday, August 27, 2013

J Query

 1. What is  J Query?

 It is a JavaScript library.

There are a lots of other JavaScript frameworks out there, but jQuery seems to be the most popular, and also the most extendable.

2. Purpose of J Query?

Purpose is to make it much easier to use JavaScript on your website.
JQuery also simplifies - complicated things from JavaScript, like AJAX calls and DOM manipulation.

3.J Query library features:
  • HTML/DOM manipulation
  • CSS manipulation
  • HTML event methods
  • Effects and animations
  • AJAX
  • Utilities
4.Adding J Query to web pages

Method 1 : Download the jQuery library from jQuery.com  
  1. Two versions of J query to Download
  • Production Version - This is for the live environment.
  • Development Version - This is for the development and Testing environment.
It is a single Java Script File(<script> tags should be inside the head section)

<head>
<script src="jquery-1.10.2.min.js"></script>
</head>  

"text/javascript" is not inside the <script> tag because JavaScript is the default scripting language in HTML5 and in all modern browsers.so this is not required in HTML5.



Method 2 :Include jQuery from a CDN. (This will help the faster loading)

If you don't want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network).
Both Google and Microsoft host jQuery.

Google CDN

 <head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
</head

 Microsoft CDN

<head>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.2.min.js">

</script>
</head> 

 

 




No comments:

Post a Comment