How to remove css class using JQuery?

Options :
  1. class.add("yourCSSClass")
  2. #cssClass("myDiv").remove("className")
  3. removeClass("#myDiv")
  4. $("divId").removeClass("yourCSSClass");
Answer and Explanation :-

Answer: Option 4

Explanation:

You can use removeCLass() function of JQuery to add css class to a control. for eg $("divId").removeClass("yourCSSClass");

How do you rate this queston?  Very Easy  Easy  Average  Above Average  Tough

Previous Question : How to add css class to a control using JQuery?

Next Question : How to check an element is exist in a form using JQuery or not?

Click here for online test on JQuery

Responses


 (Getemail alerts when others member replies)

More available Categories:-








There is no Jesus without Judas, no Martin Luther King, Jr., without the Klan no Ali without Joe Frazier no freedom without tyranny. No wisdom exists that does not include perspective. Relativity is the greatest gift.
-Chris Crutcher King of the Mild Frontier: An Ill-Advised Autobiography