jquery tggle class code example Example: jquery toggle class Click to copy$( "#foo" ).toggleClass( 'className', addOrRemoveOptional );