classe de basculement jQuery
$( "#foo" ).toggleClass( 'className', addOrRemoveOptional );
Matteoweb
$( "#foo" ).toggleClass( 'className', addOrRemoveOptional );
$("#yourElement").switchClass("removeClassName", "addClassName", [duration]);
// add class [class-name] if condition is true
// or else remove it
$('#foo-bar').toggleClass('class-name', condition)