jQuery element selector is used to select and modify HTML elements based on the element name.
Example-1: This example selects the “h2” element and adds border to it.
Example-2: This example changes text color of “h2” element on button click.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.