jquert toggleclass condity
// add class [class-name] if condition is true
// or else remove it
$('#foo-bar').toggleClass('class-name', condition)
inibir
// add class [class-name] if condition is true
// or else remove it
$('#foo-bar').toggleClass('class-name', condition)