Hello…I assume this should be relativly simple but can’t seem to figure it out and have searched all over the net.
I have an .asp page that contains a form with multiple checkboxes for users to register for classes. When the classes fill up I want to be able to not allow them to register.
Right now I am doing the following:
Using the Onclick by – onclick=”regclosed()”
where regclosed() is:
function regclosed()
{
alert(“Registration for this class has closed.” + ‘n’ + ‘n’ + “Please select another class.”);
this.checked=false;
}
The problem that I am having is that even though I only put the ‘onclick’ for certain checkboxes…as soon as I click a checkbox that has the regclosed() it clears every box that was checked – not just the one that has onclick=”regclosed()”