jquery on click display class value code example Example: jquery toggle class $( "#foo" ).toggleClass( 'className', addOrRemoveOptional );