What is jQuery?
jQuery was originally released in January 2006 by John Resig, and it is now maintained by a group of developers.
What can jQuery Do?
jQuery can do lots of things! Most developers use jQuery to provide interactivity to their website. jQuery makes it easy to mainipulate the document object model (DOM). So it's quite trivial to provide dynamic effects such as hiding elements on the fly, changing colors on the fly, and much more.
Here's a quick example of the sort of thing you can do in jQuery:
jQuery makes this sort of thing very easy.
Benefits of jQuery
jQuery's tagline is
write less, do more. And it's a fitting tagline.
For example, jQuery makes it easy to do the following:
- Add collapsable/expandable content.
- Add animation
- Change CSS styles dynamically
- Perform Ajax requests (i.e. dynamically pull data from another location without refreshing the page)
- Create widgets for your site
- General HTML/DOM manipulation
There's also a large number of jQuery plugins that you can use to add all sorts of tasks and widgets to your website.
Another major benefit of jQuery is its browser compatability. jQuery is a cross-browser library, so you don't need to worry about whether your code will work in all browsers.
With jQuery, you write one piece of code, and it will work in any of the supported browsers (which is all major browsers).
jQuery supports desktop browsers such as Chrome, FireFox, Edge, Internet Explorer, Safari, and Opera. Mobile browsers include the stock browser on Android and Safari on iOS.
I'm a Beginner... can I still learn jQuery?