robert e. lee wrote:
I have a name attribute in the form tag, but I need it there due to the
javascript validations necessary for client side checking,
name=surveyform.
1. change name=surveyform to id=surveyform
2. change document.forms[surveyform] to
document.getElementById(surveyform)
Easy
I have had a form up for a long time and it vallidates as xhtml 1.0
transitional. But I have to wonder why it is that I can't get that last
error fixed so it is strict...
I have a name attribute in the form tag, but I need it there due to the
javascript validations necessary for client side
You should be able to do all your client side checking using DOM access
methods. The name attribute in form is no longer needed nor desirable.
Rough example
input type=text id=name value= name=Name/
if ( document.getElementById(name) == )
{
alert(Please enter a name);
}
Cheers
Chris
Ooops, that should of been ;)
if ( document.getElementById(name).value == )
{
alert(Please enter a name);
}
On Mon, 2004-05-24 at 11:26, robert e. lee wrote:
I have had a form up for a long time and it vallidates as xhtml 1.0
transitional. But I have to wonder why it is that I