jquery button click remove class code example
Example 1: jquery remove css class
$("p").removeClass( "myClass yourClass" )
Example 2: add and remove class in jquery
$('#toggle li').on('click', function () {
$(this).toggleClass('open')
});
$("p").removeClass( "myClass yourClass" )
$('#toggle li').on('click', function () {
$(this).toggleClass('open')
});