🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to JavaScript Notes
Topic #265

JS jQuery


jQuery vs JavaScript

jQuery was created in 2006 by John Resig. It was designed to handle Browser Incompatibilities and to simplify HTML DOM Manipulation, Event Handling, Animations, and Ajax.

However, after JavaScript Version 5 (2009), most of the jQuery utilities can be solved with a few lines of standard JavaScript:


Finding HTML Element by Id

Return the element with id="id01":

jQuery

myElement = $("#id01");

JavaScript

myElement = document.getElementById("id01");

Finding HTML Elements by Tag Name

Return all

elements:

jQuery

myElements = $("p");

JavaScript

myElements = document.getElementsByTagName("p");

Finding HTML Elements by Class Name

Return all elements with class="intro".

jQuery

myElements = $(".intro");

JavaScript

myElements = document.getElementsByClassName("intro");

Finding HTML Elements by CSS Selectors

Return a list of all

elements with class="intro".

jQuery

myElements = $("p.intro");

JavaScript

myElements = document.querySelectorAll("p.intro");

Want to go beyond the notes?

Join CodingNow 2.0's JavaScript course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

JS jQuery – FAQs

Quick answers about learning JS jQuery in JavaScript.

This free note from CodingNow 2.0 explains JS jQuery in JavaScript — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every JavaScript topic on CodingNow 2.0, including JS jQuery, is 100% free with no signup required.
With focused practice, most students grasp JS jQuery in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now