northernbloke
Programmer
Probably forgetting something basic here:
I have a form with 4 text fields and I want to set focus to the first. Problem is that this is an array.
<input type="text" name="names[]">
what I was going to do was this:
<body ONLOAD="document.myform.names[0].focus();">
this is throwing up an error of 'Null or not an object'
slap me round the face with a DOH! type solution please.
N'Bloke
I have a form with 4 text fields and I want to set focus to the first. Problem is that this is an array.
<input type="text" name="names[]">
what I was going to do was this:
<body ONLOAD="document.myform.names[0].focus();">
this is throwing up an error of 'Null or not an object'
slap me round the face with a DOH! type solution please.
N'Bloke