[RESOLVED] XHTML Strict 1.0 says form name is not an element

liunx

Guest
Hi,<br />
I am just converting my site from HTML 4 to XHTML 1.0.<br />
I have run into a problem with a page that has two forms on it.<br />
I get the error <br />
Line 234 column 35: there is no attribute "name".<br />
<br />
<form action="" method="post" name="friend" class="form500" id="friend" onsubmit<br />
when I try to validate the code.<br />
I could just get rid of the names but I have javascripts on one of the forms and so I need its name leaving intact so that the script can reference it.<br />
<br />
Is there a way of doing this either in CSS or XHTML.<br />
<br />
Thanks,<br />
John<!--content-->whats wrong with just making the javascript use id instead of name?<br />
<br />
Waylander.<!--content-->Day one, week one really, sould have thought of it myslef, I could have sworn that the validator hsa picked be up before for having id labels in there though.<br />
Oh well, my mistake,<br />
Thanks for that.<br />
John<!--content-->
 
Top