WML <optgroup> Tag

        The <optgroup/> element is used to group various options together inside a selectable list.


        This element supports the following attributes:

        titletextSets a title for the list
        xml:langlanguage_codeSets the language used in the element
        classclass dataSets a class name for the element.
        idelement IDA unique ID for the element.


        Following is the example showing usage of this element.

        <?xml version="1.0"?>
        <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
        <card title="Selectable List"> 
           <optgroup title="India">
            <option value="delhi">Delhi</option>
            <option value="mumbai">Mumbai</option>
            <option value="hyderabad">Hyderabad</option>
           <optgroup title="USA">
            <option value="ohio">Ohio</option>
            <option value="maryland">Maryland</option>
            <option value="washington">Washingtone</option>

        When a user loads above code, then it will give two options to be selected:

        WAP Example 26

        When a user select any of the options, then only it will give final options to be selected. So if user selects India, then it will show you the following options to be selected:

        WAP Example 27