Dynadot โ€” .com Registration $8.99

Please check my <form>, Validation error

Spaceship Spaceship
Watch
Impact
410
<form action="get">
<select id="gowhere" onchange="go()" name="myform">
<option>-Find A Menu By-
<option value="Search By Cuisine.htm">Cuisine</option>
<option value="Search By Zipcode.htm">Zipcode</option>
</option>
</select>
</form>
<form action="get">
<select id="gowhere" onchange="go()" name="myform2">
<option>-Choose A Zipcode-
<option value="Toledo.htm">Toledo</option>
<option value="Maumee.htm">Maumee</option>
<option value="Sylvania.htm">Sylvania</option>
<option value="Perrysburg.htm">Perrysburg</option>
<option value="Rossford.htm">Rossford</option>
<option value="Oregon.htm">Oregon</option>
<option value="Findlay.htm">Findlay</option>
<option value="Monroe.htm">Monroe</option>
<option value="Holland.htm">Holland</option>
</option>
</select>
</form>

Dreamweaver Valiation error
The tag "option" is not allowed within: "option". It is only allowed with optgroup, select. [XHTML 1.0 transitional

I tried a form that originally didn't work so I went to w3schools.com and found this one. It works but I just get this validation error. How should I fix this?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
you need a </option> after <option>-Choose A Zipcode- and <option>-Find a Menu By- and remove the extra </option>s right before the </select>s
 
1
•••
That was it. Awesome!
 
0
•••
now when I am using firefox or chrome there is no space between the form pulldown boxes but for IE7 there is a space. WHY?
 
0
•••
that probably has something to do with you having separate <form> tags (i think IE might have built in formatting for forms differently). try using css to style all forms with 0 padding, margin, and all those other wonderful spacing thingies.
 
0
•••
I have abandoned the use of the form. I am going with a <ul>
 
0
•••
did the space go away when you did that?
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back