What is the best way to add and remove classes, clicking a button back and forth?
$('button.hamburger').on('click', function(){
$(this).addClass('is-active');
});
$('button.is-active').on('click', function(){
$('button.is-active').removeClass('is-active');
});
It doesn't remove .is-active class.
Do I need if statments to check whether the the element .hasClass()?