Categories

Select Menu

Vincent White April 24, 2016
No votes yet.
Please wait...

HTML select fields allow users select one or more values from a pre-determined series of options. It is widely used for creating filters and switchers.

Incorporating a select field into a web page is done using the <select> tag. List values are then added to the field using the <option> tag.

HTML Drop Down List example:

The code looks the following way :

<select name="selectionField"> 
  <option value="USD" >Dollar -- USD </option>
  <option value="EUR" >Euro -- EUR</option>
  <option value="GBP" >Pound -- GBP</option>
</select>

By default, select fields, popularly called drop down lists, only allow the user to choose a single value. This behavior and appearance may be changed by adjusting the multiple and size attributes as demonstrated below.

HTML Selection Field example:

The code looks the following way:

<select size="3" name="selectionField" multiple="yes" > 
  <option value="USD" >Dollar -- USD </option>
  <option value="EUR" >Euro -- EUR</option>
  <option value="GBP" >Pound -- GBP</option>
</select>

With the above settings, the user is able to select multiple values by pressing and holding the Control (Ctrl) key and clicking each value.

Feel free to check more details about selects on the following website.

Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Comments are closed.