jQuery

The DOM manipulation library everyone loves to hate.

jQuery is from the early days of web 2.0. Browser compatibility was a big deal, and the DOM manipulation shortcuts were awesome to work with.

You may have heard that React is the new way, and jQuery is out.

However, jQuery is used by 77% of websites, and React is 3%.
https://w3techs.com/technologies/overview/javascript_library

You don't need to use jQuery, you'll just have to type a little more.

If you take on a project and find out it's already using jquery, are you going to rewrite the whole thing?

Element Selection

document.querySelector('.site-title') // Vanilla JS
$('.site-title') // jQuery

Documentation

https://api.jquery.com/

Level
Topics