Answers for "toggle css class"

7

javascript remoev css class

//remove a css class from an element
document.getElementById("myElementID").classList.remove("class_name");
Posted by: Guest on July-31-2019
13

jquery toggle class

$( "#foo" ).toggleClass( 'className', addOrRemoveOptional );
Posted by: Guest on May-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language