I want to clear all forms on page load. I tried to use this function on domready, but it doesn't help. I'm new to JavaScript. Is there anything wrong with this function?
$(':input', form)
.not(':button, :submit, :reset, :hidden')
.val('')
.removeAttr('checked')
.removeAttr('selected');
$("input[type=checkbox][name=subjects]").click(function() { var bol = $("input[type=checkbox][name=subjects]:checked").length >= 3; $("input[type=checkbox][name=subjects]").not(":checked").attr("disabled",bol); });
– Travax