KenBrace Posted February 22, 2015 Posted February 22, 2015 One of the best things about jQuery is its powerful and easy-to-use selector system. So how do you select an item in HTML by its class name? Let's say I have an element with a class of "blue". I could select this element in jQuery using the following code. $(".blue"); Simple as that. Note that all we had to do was place a period before the name of the class. This period tells jQuery that you are attempting to select a class. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.