The computer uses code languages to process the input given, similarly, HTML, CSS, and JavaScript are the basic languages of the web. HTML is used to create and structure the website, CSS to style them, JavaScript for interactive functionality. As javascript includes long codes and repetitive actions, John Resig in 2006 created jQuery that simply made the Javascript easier to write. So the major question pops up in mind is that what’s the difference between the two? Javascript is a programming language whereas jQuery will help you write JavaScript faster using a simpler syntax. jQuery is like a cover of JavaScript, with pre-written functionality and DOM traversing. From the jQuery website: "jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript." It truly justifies its motto: “Write less, Do more.”
FEATURES OF JQUERY:
jQuery is an easy toolkit of JavaScript, designed to make various tasks simple by writing less code. Here is the list of key features of jQuery:- DOM MANIPULATION AND ELEMENT SELECTION− The jQuery made it simpler to select DOM elements, traverse them and change and improve their content by using cross-browser open source selector engine called Sizzle.
- EVENT HANDLING − The jQuery has a great way to capture a wide variety of events, for example, a user clicking on a link, without the need to clutter the HTML code itself with event handlers.
- AJAX − The jQuery helps you a lot to develop a quickly accessible and feature-rich site using AJAX technology.
- ANIMATIONS AND EFFECTS− The jQuery released with the plenty of built-in animation effects, you can use in your websites.
- LIGHTWEIGHT − The jQuery is a very lightweight library, not have a big size.
- CROSS BROWSER SUPPORT − The jQuery comes with cross-browser support and can work with IE 6.0+, FF 2.0+, Safari 3.0+, Chrome and Opera 9.0+. However, jQuery version 2.x dropped Internet Explorer 6–8 support and supports only IE 9 and later versions.
- MODERN TECHNOLOGY − The jQuery supports CSS3 selectors and basic XPath syntax.
- DEFERRED AND PROMISE OBJECT − To control asynchronous processing
- PLUG-INS – Its extensibility through plug-ins.
- Download a local copy.
- Link to a file via Content Delivery Network (CDN).
- By the $ function, which is a factory method for the jQuery object. These functions, called as commands, are chainable as they all return jQuery objects.
- By the $.-prefixed functions. These are utility functions, which do not directly act upon the jQuery object
Comments
Post a Comment