How to select CSS elements in jQuery

Posted in: CSS, jQuery , No Comments

jQuery let you select CSS elements and perform some action on that CSS element. Selecting a CSS elements in jQuery is very easy. Just wrap the CSS element in $(“”)
You can also use single quota, like $(”)

1. Select all div elements.


2. Selects HTML element with ID “somename”


3. Selects HTML element with class “classname”


Similarly you can select different types of element in jQuery. It support CSS1, CSS2 and CSS3

About the Author

Name: Ravi Shekhar
I love learning and sharing web stuffs.

Share this post

Twitter Facebook Google Buzz Digg StumbleUpon Delicious Technorati

Leave a Reply