Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EASY DROPDOWN QUESTION HELP

Status
Not open for further replies.

SeanB

Programmer
Jul 19, 2001
70
US
I have a dropdown box that when I click on it, the box wont stay open. Any idea? Here is the syntax:
<SELECT id=type name=type>
<OPTION value=&quot;&quot;></OPTION>
<OPTION value=&quot;B&quot;> Buyer </OPTION>
<OPTION value=&quot;S&quot;> Sales </OPTION>
</SELECT>
 
I was checking through some of our combo box coding and found this which pulled through vat months

<select name=&quot;vatMonth&quot;>
<option selected value=&quot;&quot;>Select...</option>
<option value=&quot;June&quot;>April</option>
<option value=&quot;September&quot;>July</option>
<option value=&quot;November&quot;>March</option>
<option value=&quot;March&quot;>April</option>
</select>

This works for us, the only difference is the the first option has selected value after it.
Also you have specified your id, where as we haven't, your id and name are the same thing, maybe you should change what you call each reference! Cheers and Stuff

DaveSmith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top