jQuery Tutorial Tutorials - jQuery Class selector .class-name

jQuery Class selector .class-name

Class selector selects all elements in the document which have a class of the given class-name.

Class selector syntax:

$('.class-name')

jQuery Class selector Example

In following example,when the user click on the button, the color of the element with class="blue" would be changed to blue

example:Select element by class name using jQuery
Try now

Date:2019-06-09 01:37:48 From:www.Lautturi.com author:Lautturi