jQuery Tutorial:

 

jQuery Preface:

The purpose of jQuery is to implement the javascript much easier on the web browser.

Javascript contains many lines of code, it converted into methods that you can call with the help of single line code in jQuery.

 

1. What is jQuery?

 jQuery is JavaScript library or JavaScript Framework, which do document traversing, Event handling, Ajax interaction, and animations.

  • jQuery is used to develop browser compatible web applications improve the performance of an application.
  •  Very fast and extensible. 
  •  UI related functions are written in minimal lines of codes.

 

2. How many jQuery types are available?

 There are two types of jQuery, they are

  • Download the jQuery library from jQuery.com
  •  Include jQuery from a CDN(Content Delivery Network) ,like Google. 

3. How to Download jQuery?

 There are two versions available

  • Production Version: The Production Version is a minified version of the same source file.(compressed)
  •  Development Version: The Development Version is for testing and development.(uncompressed)

 

These two versions can be downloaded from jQuery.com

 

4. How to include jQuery in our web page?

 First, It can be included within web page by linking to local copy or to one of the many copies available from public servers.

<script src="jquery.js"></script>

 

Next, It is also possible to include jQuery directly from CDNs.

<script src="http://code.jquery.com/jquery-latest.min.js"></script>

 

5. What is the difference between jQueryand JavaScript?

JavaScript is a Scripting Language that was designed to use the web browser. JavaScripts are used for interface interactions. JavaScript is used in both server side and client side, however, it is mostly known as the client-side scripting language.

jQueryis a specific library of JavaScript. Before jQuery was developed, web developers created their own custom frameworks in JavaScript. The difference is that jQuery has been optimized to perform many common scripting functions and it does so while using fewer lines of code.

Simply, JavaScript is a language while jQuery is a library built in the JavaScript language that helps to use JavaScript language.

 

6. Is jQuery for client scripting or server scripting?

 jQuery Client side scripting.

 

7. Is jQuery w3c standard?

 No

 

8. Can we have multiple document.ready() functions on the same page?

 Yes

 

9. What is a CDN?

 CDN is Content Distribution Network and it is for a group of companies in a different location with the network containing copies of data to maximize bandwidth in accessing data.

 

10. Which are popular jQuery CDN?

 The popular jQuery CDN's are

  • Google
  • Microsoft
  • jQuery