dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Web Development
Expertise: Beginner
Apr 14, 1997

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Creating a pull-down menu

Question:
I am trying to create a pull-down menu for my Web page, and it is not working.

Answer:
The syntax for creating a pull-down menu is as follows:

<FORM> Pull-down Menu: <SELECT NAME=name SIZE=1> <OPTION>No items <OPTION>Item 1 <OPTION>Item 2 <OPTION>Item 3 <OPTION>Item 4 </select> </form>
Pull-down Menu:

Where NAME will be the name of the value, SIZE will show how many items show vertically, and OPTION will be submitted as a value to your script. The default behavior of this form component is to allow for only one item (OPTION) to be chosen at a time. "Select Boxes" can also allow the user to select multiple items by simply adding: MULTIPLE like...

<SELECT MULTIPLE NAME=sample SIZE=2> . . . </select> Note that you may want to enlarge the SIZE so that it's obvious that one may choose more than one item. The problem with the multiple selection is that for each platform where the form is being viewed, you need to use a different key combination to select multiple items. So for multiple selections, if room permits, I recommend using a check-box.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date