Apply css class on html elements using jQuery

$(‘div’).addClass(‘active’);

// here active is the class name which you want to apply on your html page.

// div is the element on which you apply specified class.

Write a Reply or Comment

Your email address will not be published.