JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" class="orange" name="Ignore Select" value="Ignore Select" id="select" />
<input type="button" class="orange" name="Ignore Delete" value="Ignore Delete" id="select1" />
<input type="button" class="orange" name="Ignore Insert" value="Ignore Insert" id="select2" />

CSS

.red {
    background-color:red;
}
.orange {
    background-color:orange;
}

JavaScript

$(":button").on('click', function () {
    var gValue = $(this).attr('class');
    if (gValue == 'orange') {
        $(this).removeClass("orange");
        $(this).addClass("red");
    } else {
        $(this).removeClass("red");
        $(this).addClass("orange");
    }
});