How to Remove class to any controls dynamically?

 Posted by vishalneeraj-24503 on 1/3/2015 | Category: jQuery Interview questions | Views: 794 | Points: 40
Answer:

removeClass is an in-built jQuery method,which is used for removing any class dynamically.We have to pass class name in this removeClass method .
Syntax:-
removeClass(className);

For Example:-
<script src="//code.jquery.com/jquery-1.10.2.js"></script>

$("p").removeClass("className");


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response