The multiple <select> list

Only one item on the <select> list can be selected at a time and submitted with the forms data. To change this setting, add the multiple attribute to the <select> tag. To select a range of list elements, the user must hold down the SHIFT key and click on the first and the last items in the range.
To select the only the required particular items, the user must hold down the CRL key and click on each item to be included.

The multiple attribute works only if the size attribute is set to a value greater than 1.
For each selected item, a name=value pair is added to the forms data.
If the value attribute for an item in the <select> list is not defined, the content of the <option>..</option> block is used in the submitted data.
Related Tutorial
Follow Us #