I am using jQuery-ui button set here. What I want when both check-boxes are checked I need the buttons to be activate and removeClass disabledButton, and when not checked (both) I want the buttons to be disabled and addClass disabledButton. How can I do that?
Here is my jQuery approach:
$(".conditionCheck").buttonset();
$(".conditions").click(function () {
if ($(".conditions").is(':checked')) {
$(".paymentButton").removeAttr("disabled")
.removeClass("disabledButton");
}
if (!$(".conditions").is(':checked')) {
$(".paymentButton").attr("disabled")
.addClass("disabledButton");
}
});