$(function() {
function checkSubmit() {
var submitOnProps = {
'transition': 'all 0.3s linear 0s',
'background-color': '#343434',
'color': '#fff',
'border': '0'
}
var submitOffProps = {
'background-color': 'transparent',
'color': '#999999',
'border': '1px solid #999'
}
if ($('input[id="agree-1"]:checked').val()) {
$('[name="submitConfirm"]').prop("disabled", false).css(submitOnProps);
} else {
$('[name="submitConfirm"]').prop("disabled", true).css(submitOffProps);
}
}
checkSubmit();
$('[id="agree-1"]').click(function() {
checkSubmit();
});
});