WML Program to Display option group
Code:
/*WML Program to Display option group*/
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORAM//DTD WML 1.2//EN"
"http:??www.wapforum.org/DTD/wml12.dtd">
<wml>
<card title="Selectable list">
<p>
<select>
<optgroup title = "INDIA">
<option value="DELHI">DELHI</option>
<option value="MUMBAI">MUMBAI</option>
<option value="HYDERABAD">HYDERABAD</option>
</optgroup>
<optgroup title = "USA">
<option value="LA">LA</option>
<option value="NEW YORK">NEW YORK</option>
<option value="LONDON">LONDON</option>
</optgroup>
</select>
</p>
</card>
</wml>
Sample Output:<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORAM//DTD WML 1.2//EN"
"http:??www.wapforum.org/DTD/wml12.dtd">
<wml>
<card title="Selectable list">
<p>
<select>
<optgroup title = "INDIA">
<option value="DELHI">DELHI</option>
<option value="MUMBAI">MUMBAI</option>
<option value="HYDERABAD">HYDERABAD</option>
</optgroup>
<optgroup title = "USA">
<option value="LA">LA</option>
<option value="NEW YORK">NEW YORK</option>
<option value="LONDON">LONDON</option>
</optgroup>
</select>
</p>
</card>
</wml>
Comment bellow for Query and Feedback :)
0 comments:
Confused? Feel free to ask
Post a Comment