Without publishing any code, the best thing I can do for you right now is if you get a simple jQuery function to change the color of a button by switching classes.
Js
$(".btn").click(function() {
$(this).toggleClass("clicked");
});
CSS
.btn {
background-color: red;
}
.clicked {
background-color: blue;
}
EDIT. ashin999, bootstrap ( , , ), . , clicked.