Hi,
I am trying to use the following function to tick a checkbox if it is in a false state, or untick in a true state. e.g:
<input name="Area1" type="checkbox" value="Africa">
<a href="#" onClick="CheckMyBox(Area1);return false;">AFRICA</a>
function CheckMyBox(chk)
{
if(chk.checked)
{
chk.checked=false;
}
else
{
chk.checked=true;
}
}
Page is here:
Works in IE not Firefox. Thanks for any help.
K Abbott IT Manager / Web Developer
I am trying to use the following function to tick a checkbox if it is in a false state, or untick in a true state. e.g:
<input name="Area1" type="checkbox" value="Africa">
<a href="#" onClick="CheckMyBox(Area1);return false;">AFRICA</a>
function CheckMyBox(chk)
{
if(chk.checked)
{
chk.checked=false;
}
else
{
chk.checked=true;
}
}
Page is here:
Works in IE not Firefox. Thanks for any help.
K Abbott IT Manager / Web Developer