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.