Answers

Question and Answer:

  Home  JQuery Programmer

⟩ How to add the specified class if it is not present, remove the specified class if it is present using jQuery?

The toggleClass(class) method adds the specified class if it is not present, removes the specified class if it is present.

 275 views

More Questions for you: