Remove Class - Jquery

How to remove class in jquery

Snippet Code


  
Rate this page :
  [ 0 votes]

Here the class "demo" is removed using removeclass function.

$(document).ready(function(){ $("#test").removeClass("demo");//To remove class "demo" to <div> tag. }); <div id='test' class='demo'>Welcome to hiox</div> <style> .demo{font-weight:bold;font-size:1.2em;color:red;font-style:italic;} </style>

Tags


Ask Questions

Ask Question