on click remove class display none if other botton click add class again code example
Example: jquert toggleClass condition
// add class [class-name] if condition is true
// or else remove it
$('#foo-bar').toggleClass('class-name', condition)
// add class [class-name] if condition is true
// or else remove it
$('#foo-bar').toggleClass('class-name', condition)