📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials jQuery in Practice What is jQuery?

What is jQuery?

5 min read Quiz at the end
jQuery is a JavaScript library that simplifies DOM manipulation, event handling, and AJAX. It works consistently across all browsers with a clean chainable API. It still powers over 77% of websites because of its wide adoption.

What is jQuery?

jQuery is a fast, small JavaScript library that simplifies DOM manipulation, event handling, and AJAX. Its motto: Write less, do more.

// Vanilla JS
document.getElementById('btn').addEventListener('click', fn);

// jQuery
$('#btn').on('click', fn);

jQuery works in all major browsers and is still used on ~78% of the top 10 million websites.

Topic Quiz · 5 questions

Test your understanding before moving on

1. What does $ stand for in jQuery?
💡 $ is an alias for the jQuery function — $('selector') returns a jQuery object.
2. Which file extension does jQuery use?
💡 jQuery is a JavaScript library saved in .js files.
3. What is the jQuery motto?
💡 jQuery's motto is "Write less, do more."
4. What does jQuery simplify?
💡 jQuery simplifies DOM manipulation, events, AJAX, and animations.
5. What percentage of top websites use jQuery?
💡 jQuery is used on approximately 78% of the top 10 million websites.