M
Marc
Okay, here's the problem - I have 3 radio buttons, and 11 check boxes
(which are disabled by default). I have the javascript below which when
the last radio button is clicked, enables the checkboxes.
<script type="text/javascript">
//<![CDATA[
function checkIt(onoff){
var disabledcheckboxes = (onoff == 'off');
document.forms.addUserForm.permhome.disabled = disabledcheckboxes;
document.forms.addUserForm.permswimming.disabled = disabledcheckboxes;
document.forms.addUserForm.permhealth_clubs.disabled = disabledcheckboxes;
document.forms.addUserForm.permplay_centre.disabled = disabledcheckboxes;
document.forms.addUserForm.permmembership.disabled = disabledcheckboxes;
document.forms.addUserForm.permfitness_classes.disabled =
disabledcheckboxes;
document.forms.addUserForm.permparties.disabled = disabledcheckboxes;
document.forms.addUserForm.permsauna.disabled = disabledcheckboxes;
document.forms.addUserForm.permactivities.disabled = disabledcheckboxes;
document.forms.addUserForm.permfunctions.disabled = disabledcheckboxes;
document.forms.addUserForm.permcreche.disabled = disabledcheckboxes;
}
//]]>
</script>
I used the JavaScript on 2 pages, on almost identical forms, and for
some reason it doesn't work on the 2nd one - they just stay disabled,
irrespective of what you click.
The HTML&JS for the first page (the one that works) is here:
http://p.shurl.net/37
The HTML&JS for the second page (that doesn't work) is here:
http://p.shurl.net/38
I'm sorry I can't point you to the actual pages, but they're within a
login-protected admin interface.
Any help would be appreciated.
Thanks!
Marc
(which are disabled by default). I have the javascript below which when
the last radio button is clicked, enables the checkboxes.
<script type="text/javascript">
//<![CDATA[
function checkIt(onoff){
var disabledcheckboxes = (onoff == 'off');
document.forms.addUserForm.permhome.disabled = disabledcheckboxes;
document.forms.addUserForm.permswimming.disabled = disabledcheckboxes;
document.forms.addUserForm.permhealth_clubs.disabled = disabledcheckboxes;
document.forms.addUserForm.permplay_centre.disabled = disabledcheckboxes;
document.forms.addUserForm.permmembership.disabled = disabledcheckboxes;
document.forms.addUserForm.permfitness_classes.disabled =
disabledcheckboxes;
document.forms.addUserForm.permparties.disabled = disabledcheckboxes;
document.forms.addUserForm.permsauna.disabled = disabledcheckboxes;
document.forms.addUserForm.permactivities.disabled = disabledcheckboxes;
document.forms.addUserForm.permfunctions.disabled = disabledcheckboxes;
document.forms.addUserForm.permcreche.disabled = disabledcheckboxes;
}
//]]>
</script>
I used the JavaScript on 2 pages, on almost identical forms, and for
some reason it doesn't work on the 2nd one - they just stay disabled,
irrespective of what you click.
The HTML&JS for the first page (the one that works) is here:
http://p.shurl.net/37
The HTML&JS for the second page (that doesn't work) is here:
http://p.shurl.net/38
I'm sorry I can't point you to the actual pages, but they're within a
login-protected admin interface.
Any help would be appreciated.
Thanks!
Marc