Hi,
4 checkboxes labelled 1-4 within the same form. All start off unchecked.
The first 3 checkboxes act like a radio group when checked, but checkbox 4 is independent from the 'radio group' and needs to act like a regular checkbox.
I have been using the following script:
function Boxcheck(obj)
{
with(obj.form)
for(i=0;i<elements.length;i++)
if(elements.type=="checkbox" && elements!=obj)
elements.checked=false;
}
and the checkboxes with the code in the format of:
<input name="STR" type="checkbox" id="STR" value="1" onclick="Boxcheck(this)">
but this chnages every checkbox including checkbox 4, which I don't want it to. Any ideas?
Cheers
4 checkboxes labelled 1-4 within the same form. All start off unchecked.
The first 3 checkboxes act like a radio group when checked, but checkbox 4 is independent from the 'radio group' and needs to act like a regular checkbox.
I have been using the following script:
function Boxcheck(obj)
{
with(obj.form)
for(i=0;i<elements.length;i++)
if(elements.type=="checkbox" && elements!=obj)
elements.checked=false;
}
and the checkboxes with the code in the format of:
<input name="STR" type="checkbox" id="STR" value="1" onclick="Boxcheck(this)">
but this chnages every checkbox including checkbox 4, which I don't want it to. Any ideas?
Cheers