How do I remove a css class from a div tag and then add another css class to that same div tag using JQuery?

No Comments

The following code removes a css class and then adds another css class to a specific div tag


#div_id = Div Tags ID
OldClass = CSS class that needs to be removed
NewClass = CSS class that needs to be added

Image Credits: Photo by Isis França on Unsplash.

Last Updated On March 21, 2018

Related Articles

No results found

Leave a Reply

Notify of
Copy link