Currently using the following script:
$(document).ready(function() {
$(".accept").change(function () {
if ($(this).val() == "0") {
$(".generateBtn").addClass("disable");
} else {
$(".generateBtn").remove("disable");
}
});
});
After changing the value, the script works. But how can I add the style to disable the div upon loading?
Should I simply use:
$(".generateBtn").addClass("disable");
Or is there a more elegant solution?