Home  >  jQuery

Example of Class Selector in jQuery

April 28, 2013
Class Selector works on class. Class Selector selects the class and applies the other jQuery functionality as required. Find the syntax of Class Selector.
We need to start with (.) and then any class name. Find the example.

<!DOCTYPE html>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<div class="simple"> Hi All</div>
<div class="colored">This is jQuery Demo.</div>
<div class="simple"> Learn jQuery with Example.</div>
<span class="colored">We will learn class selector here</span>

Hi All
This is jQuery Demo.
Learn jQuery with Example.
We will learn class selector here

©2022 concretepage.com | Privacy Policy | Contact Us