Hi,
Can anyone tell me how I can check to see if this form field is blank on submit:
<input type='hidden' name='conn[]' id='cs' value=' '>
The problem is that javascript won't seem to allow the [] on the end of conn in the name.
ie this: theForm.conn[].value ==""; produces a syntax error.
i have tried this aswell:
var id=document.formname.cs;
document.getElementById(id).value="";
this produces an error that says object does'nt support this property .
I can't remove the [] from the end of the field name cos this is required for some server side processing.
Anyone got any ideas?
Cheers.
Can anyone tell me how I can check to see if this form field is blank on submit:
<input type='hidden' name='conn[]' id='cs' value=' '>
The problem is that javascript won't seem to allow the [] on the end of conn in the name.
ie this: theForm.conn[].value ==""; produces a syntax error.
i have tried this aswell:
var id=document.formname.cs;
document.getElementById(id).value="";
this produces an error that says object does'nt support this property .
I can't remove the [] from the end of the field name cos this is required for some server side processing.
Anyone got any ideas?
Cheers.