Click to See Complete Forum and Search --> : [RESOLVED] XHTML Strict 1.0 says form name is not an element


postedoverseas
08-23-2006, 12:58 AM
Hi,
I am just converting my site from HTML 4 to XHTML 1.0.
I have run into a problem with a page that has two forms on it.
I get the error
Line 234 column 35: there is no attribute "name".

<form action="" method="post" name="friend" class="form500" id="friend" onsubmit
when I try to validate the code.
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.

Is there a way of doing this either in CSS or XHTML.

Thanks,
John

Waylander
08-23-2006, 03:10 AM
whats wrong with just making the javascript use id instead of name?

Waylander.

postedoverseas
08-23-2006, 03:15 AM
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.
Oh well, my mistake,
Thanks for that.
John