Monday, 23 December 2013

OPTGROUP


optgroup

Option group. Defines a group of option elements in a selectform field.

Attributes
  • label is used to assign a label to the option group.
Optional Attributes
  • disabled can be used to disable an element. It must be used in the format disabled="disabled".
Example

<select name="catsndogs">
        <optgroup label="Cats">
               <option>Tiger</option>
               <option>Leopard</option>
               <option>Lynx</option>
        </optgroup>
        <optgroup label="Dogs">
               <option>Grey Wolf</option>
               <option>Red Fox</option>
               <option>Fennec</option>
        </optgroup>
</select>

No comments:

Post a Comment

Physics basic inventions and inventors

1.Which instrument is used to measure altitudes in aircraft's ? Audiometer Ammeter Altimeter Anemometer Explanation : ...