select
HTML select Element
The HTML <select> element is usually applied in form creation when we desire a drop down selection list for users to choose a value from. The <option> element is placed inside of the <select> element to render the choices for the user to select a value from. When the form is submit you can use something like PHP to process the name attribute [ key->value ] set to access what the user chose for that form component, then email it or send to a database for storage.
HTML CODE EXAMPLE
Choose Instrument:
<select name="instrument">
<option value="Guitar">Guitar</option>
<option value="Harp">Harp</option>
<option value="Piano">Piano</option>
<option value="Trumpet">Trumpet</option>
</select>
<select name="instrument">
<option value="Guitar">Guitar</option>
<option value="Harp">Harp</option>
<option value="Piano">Piano</option>
<option value="Trumpet">Trumpet</option>
</select>
Choose Instrument:
0 Response to "select"
Post a Comment