Issue
I want to exclude "wp-dark-mode-ignore" class from the button class in WordPress?
<button type="button" class="bookingbutton2 wp-dark-mode-ignore" style="">
<span>Reserve Now</span>
</button>
Solution
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" class="bookingbutton2 wp-dark-mode-ignore" style="">
<span>Reserve Now</span>
</button>
Answered By - SKJ
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.