jQuery

jQuery — MIT licensed fast, small, and feature-rich JavaScript library for DOM manipulation, events, animation, and Ajax

About jQuery

jQuery is a fast, small, and feature-rich JavaScript library that simplifies common browser-side tasks. It was created to reduce the amount of code needed for DOM traversal, DOM manipulation, event handling, animation, and Ajax, especially in a time when browser APIs and compatibility differences were much more painful than they are today.

Even though modern browser standards have reduced the need for jQuery in many new projects, it still remains important in existing websites, plugins, CMS platforms, and legacy applications. It is also a useful teaching example because it presents a compact and approachable API for working with the DOM.

Created by: John Resig First released: 2006 Primary language: JavaScript License: MIT License

jQuery became one of the most influential front-end libraries because it made browser scripting dramatically easier.

Its main advantages included:

  • Simple syntax for selecting and changing DOM elements
  • Cross-browser abstraction that reduced compatibility headaches
  • Concise event handling with a consistent API
  • Animation helpers for common UI effects
  • Ajax utilities that made asynchronous requests straightforward
  • Plugin ecosystem that encouraged reuse and extension

For many years, jQuery served as the practical layer between raw JavaScript and the messy reality of browser differences.

Common Use Cases

DOM Manipulation

jQuery is widely used to update content, toggle classes, show or hide elements, and transform page structure in response to user actions.

Event Handling

The library made click, input, submit, and keyboard interactions much easier to wire up than older browser-specific APIs.

Ajax Requests

jQuery’s Ajax helpers became the standard approach in many applications for loading data without full page refreshes.

Animation and Effects

It provided a quick way to fade, slide, and animate interface elements without writing low-level timing code.

Legacy Maintenance

Many existing applications still depend on jQuery, so understanding it is helpful when maintaining older sites or integrating with third-party plugins.

Technical Notes

jQuery is centered around a function that returns a wrapped set of selected elements. That design makes method chaining natural and keeps code readable.

The library also helped popularize patterns that are now common in frontend development:

  • chaining operations on selected elements
  • using selectors for concise element targeting
  • separating event binding from event logic
  • building reusable plugins around a shared API shape

License Information

jQuery is distributed under the MIT License.

The current jQuery license notice is:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
Copyright OpenJS Foundation and other contributors, https://openjsf.org/

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

If you redistribute jQuery itself or bundle it into another product, keep the license notice and any relevant attribution information with your distribution.

How to Attribute jQuery in Your Project

In README.md

1
This project uses [jQuery](https://jquery.com/) © OpenJS Foundation and other contributors, MIT License.

In About / Credits page

1
2
jQuery - Copyright OpenJS Foundation and other contributors - MIT License
https://github.com/jquery/jquery/blob/main/LICENSE.txt
1
2
jQuery library, MIT License
Copyright OpenJS Foundation and other contributors

Resources