What are the advantages of jQuery?

  • Short code: a task which needs many lines of plain JavaScript is often one line in jQuery.
  • Cross browser: the same code works in all the supported browsers.
  • Easy DOM work: simple selectors, traversing and changing of elements.
  • Effects and Ajax are built in.
  • Plugins: thousands of ready made plugins.
  • Big community and a lot of old code and WordPress support.

The disadvantage is the extra file size, and that plain JavaScript can do many of these things now. See jQuery vs Vanilla JavaScript.


Learn more about the similar topics:
Tutorials
jQuery Introduction
jQuery Get Started
jQuery Syntax
jQuery Document Ready Function
jQuery noConflict() Method
jQuery vs Vanilla JavaScript
jQuery 4 and Upgrading from jQuery 3
Exercises & Assignments
No Content Found.
Interview Questions & Answers
What is jQuery?
What are the advantages of jQuery?
What is the difference between jQuery and JavaScript?
How do you add jQuery to a web page?
What is the document ready function in jQuery?
What is the difference between $(document).ready() and window.onload?
What is the $ sign in jQuery?