I want to exclude "wp-dark-mode-ignore" class from the button class in WordPress?
<button type="button" style="">
<span>Reserve Now</span>
</button>
CodePudding user response:
You can use removeClass();
$('.bookingbutton2').removeClass('wp-dark-mode-ignore');
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<button type="button" style="">
<span>Reserve Now</span>
</button>