How can I change the css color properties of a button in the bootstrap framework?
For example, one of my buttons…
<button type="button" id="button1" class="btn btn-primary btn-large" onclick="checkAnswer(0)">Some text</button>
Some jQuery…
$(document).ready(function(){
// Wrong answer! The selected button turns red.
$("#button1").click(function(){
$("btn-primary").css("background-color", "red");
});
});
Thanks.
If the commment not gave any sense :), here in code