function selectother_onclick(){
if(thisForm.checkbox1.checked){
thisForm.checkbox1.checked=false
}
else
{
thisForm.checkbox1.checked=true
}
if(thisForm.checkbox2.checked){
thisForm.checkbox2.checked=false
}
else
{
thisForm.checkbox2.checked=true
}
if(thisForm.checkbox3.checked){
thisForm.checkbox3.checked=false
}
else
{
thisForm.checkbox3.checked=true
}
if(thisForm.checkbox4.checked){
thisForm.checkbox4.checked=false
}
else
{
thisForm.checkbox4.checked=true
}
if(thisForm.checkbox5.checked){
thisForm.checkbox5.checked=false
}
else
{
thisForm.checkbox5.checked=true
}
if(thisForm.checkbox6.checked){
thisForm.checkbox6.checked=false
}
else
{
thisForm.checkbox6.checked=true
}
}
thisForm.checkbox是一个checkbox
谁能帮我改为循环的程序?
我改了半天也改不了。
谢谢