×
Namespaces

Variants
Actions

Select example

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: Korpela (19 Nov 2007)
Last edited: hamishwillee (31 Jul 2012)
XHTML MP can be used a select list whenever the user must select one or more predefined options. A select list is often a more efficient, faster alternative when asking the user for input.
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML
Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtmlmobile10.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Select example</title>
</head>
<body>
<form action="form-process.xhtml"
method="get"> <p>Choose City:<br/>
<select name="city">
<option value="Oslo">Oslo</option>
<option value="Tokio">Tokio</option>
<option value="SanDiego">SanDiego
</option>
</select>
<br/>
<input type="submit"
value="Continue"/>
</p>
</form> </body>
</html>
This page was last modified on 31 July 2012, at 10:45.
38 page views in the last 30 days.
×