DEV Community

Using CSS Selectors In Javascript

Mainasara Al-amin Tsowa on March 04, 2019

In CSS, selectors are patterns used to select the element(s) you want to style, but as you can tell from the title above, selectors are also useful...
Collapse
 
pra3t0r5 profile image
Pra3t0r5

Awesome! I'm using jQuery and several friends told me I should try with pure JavaScript. Looks like the transition will be pretty easy!

Collapse
 
ihilt profile image
Ian Hilt

This website is helpful if you don't want to use jQuery or want to learn plain javascript.

youmightnotneedjquery.com/

Collapse
 
neutrino2211 profile image
Mainasara Al-amin Tsowa

Yeah, since I learned this I haven't been heavily reliant on jQuery 😁

Collapse
 
jackedwardlyons profile image
Jack Lyons

Awesome post. It goes well with this article "The 30 CSS Selectors You Must Memorize"

code.tutsplus.com/tutorials/the-30...

Collapse
 
ufukcam profile image
Ufuk 💻🚀

Thank you so much. Now I understood better which I didn’t understand parts. 🙏🏻👏