Explain remove class jquery with example?



Explain remove class jquery with example?..

Answer / Rahul Singh

To remove a class from an element using jQuery, use the '.removeClass()' method. Here's an example:

```javascript
$("#myElement").removeClass("old-class");
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Define bind() and unbind elements in jQuery?

1 Answers  


How to multiple AJAX requests be run simultaneously in jQuery?

1 Answers  


How can jquery library be added to pages?

0 Answers  


Name some of the methods of jquery used to provide effects?

1 Answers  


Define width() vs css('width')?

1 Answers  


What is the difference between the knockout and jquery?

1 Answers  


Is there any advantage of using $.ajax() for ajax call against $.get() or $.post()?

1 Answers  


Why html 5 inputs look different across devices and browsers? : jquery mobile

1 Answers  


What is the difference between "#" and "." selector in JQuery?

1 Answers  


What is the use of jQuery filter?

1 Answers  


What is .detach()? : jquery mobile

1 Answers  


Explain remove class jquery with example?

1 Answers  


Categories