jQuery is a (write less or do more) lightweight javaScript library that simplifies programming with JavaScript. The purpose of jQuery is to make it much easier to use JavaScript on your website. jQuery has changed the way that millions of people write JavaScript and we can use j query free of cost. It is equally important for web designers and developers.
We use Ajax in j query. By using ajax, our site performance has become fast.
Why Should we use J Query?
J Query is a fast feature rich library by using it we can makes things like HTML and manipulation,event handling, animation etc.
JQuery vs JavaScript
The biggest difference between jQuery and JavaScript is that jQuery has been enhanced to work with a range of browsers spontaneously. Unluckily for JavaScript it has still some concerns with cross-browser compatibility due to deprived JavaScript execution practices on the part of web browser developers.
Why Should we use j query instead of Javascript?
Jquery is the browser compatibal means jquery work in all mordern browser but the javascript are not browser compatibal in the same way the code of javascript is more difficults and complex from j-query.
what is the j-query syntax?
Basic syntax is: $(selector).action()
- “$”” sign to define/access jQuery
- “selector” to “query (or find)” HTML elements
- “action()”” to be performed on the element(s)
$(document).ready(function(){
// jQuery methods go here…
});