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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop Down Menus

Status
Not open for further replies.

CliffLandin

Programmer
Nov 14, 2004
81
US
I am trying to create a simple drop down menu without using DHTML. Can anyone point me in the right direction to learn how to make these. I have searched for drop down menus on Google and come up with a ton of Javascript and DHTML examples, but I was under the impression that the menus could be created using HTML and CSS.

When in doubt, go flat out!

 
I'm not sure if this is what you want, this is a list of countries and their abbreviations. When you pass the data to your program the field name is &CTRY (SQL, Focus, WebFocus, the variable may take another form in other languages)

<SELECT id="CountryBox" size="1" name="CTRY">
<OPTION value="BE" selected>Belgium</OPTION>
<OPTION value="HK">Hong Kong</OPTION>
<OPTION value="IN">India</OPTION>
<OPTION value="MY">Malaysia</OPTION>
<OPTION value="SG">Singapore</OPTION>
<OPTION value="AE">United Arab Emirates</OPTION>
<OPTION value="GB">United Kingdom</OPTION>
</SELECT>

Size = "1" means only 1 will show in the box. This is for a single selection.

If you are using front page you can select drop down option from the forms list, double click and it will propt you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top