Ajax Codexery

JQuery

A JavaScript library for DOM manipulation and cross-browser compatibility.

jQuery is a free, open-source JavaScript library released under the MIT License. It streamlines tasks like navigating and updating the HTML DOM, handling events, creating CSS animations, and using Ajax. As of August 2022, it powers 77% of the ten million most popular websites, making it the dominant JavaScript library by a wide margin.

Quick Facts

Author
John Resig
Released
26 August 2006
Latest release version
property, edit, reference, P348
Latest preview version
jQuery 4.0.0 Release Candidate 1
Latest preview date
11 August 2025
Programming language
JavaScript
Platform
See, Browser support
Genre
JavaScript library

Facts from the source article.

Did You Know?

Overview

jQuery is a Document Object Model (DOM) manipulation library. The DOM is a tree-structure representation of all elements of a Web page, and jQuery simplifies the syntax for finding, selecting, and manipulating these elements. For example, jQuery can find an element with a certain property, change its attributes, or make it respond to an event. jQuery also provides a paradigm for event handling where event assignment and callback function definition occur in a single step. The principles of developing with jQuery include separation of JavaScript and HTML, brevity and clarity through chainable functions and shorthand names, elimination of cross-browser incompatibilities, and extensibility through easily added plugins.

History

jQuery was created in January 2006 at BarCamp NYC by John Resig, influenced by Dean Edwards' cssQuery library. It is maintained by a team led by Timmy Willison, with the Sizzle selector engine led by Richard Gibson. Originally licensed under CC BY-SA 2.5, it was relicensed to the MIT License in 2006, then dual-licensed under GPL and MIT until 2012 when the GPL was dropped. In 2015, jQuery was used on 62.7% of the top 1 million websites, rising to 80% of the top 1 million in 2019 and 77.8% of the top 10 million in 2021.

Features

jQuery includes DOM element selections using the Sizzle selector engine, DOM manipulation based on CSS selectors, events, effects and animations, Ajax, Deferred and Promise objects for asynchronous processing, JSON parsing, extensibility through plugins, utilities such as feature detection, and compatibility methods for older browsers. jQuery 3.0 and newer supports current minus one versions of Firefox, Chrome, Safari, and Edge, as well as Internet Explorer 9 and newer, iOS 7 and newer, and Android 4.0 and newer.

Interface

jQuery provides static utility functions and jQuery object methods, both accessed through the main identifier jQuery or its alias $. The jQuery function is a factory for creating a jQuery object representing one or more DOM nodes. Methods on jQuery objects are chainable, as each method returns a jQuery object. Access typically begins with calling $ with a CSS selector string, returning a jQuery object referencing matching elements.

Static methods like $.ajax() do not act on a jQuery object. jQuery provides a $.noConflict() function to relinquish control of the $ name when used with other libraries. Initialization code is placed in $(handler), triggered when the browser finishes constructing the DOM. Historically, $(document).ready(callback) was used, but since jQuery 3.0, $(handler) is encouraged. Method chains allow operations like selecting elements, registering event handlers, and adding classes in one line.

More in Stadium & Culture

Elsewhere in Ajax

Spotted an error? Know more?

Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced

Comments

Loading…
Open in the interactive codex →