Answers

Question and Answer:

  Home  Ninjas Web Developer

⟩ Tell me how do you add and remove CSS classes to an element using jQuery?

By using the addClass() and removeClass() jQuery methods. This can be very handy, while dynamically changing class of elements e.g. marking them inactive or active and using class “.active” etc.

 201 views

More Questions for you: