WML Tutorial 12: Control groups (fieldset) and complex examples

Source: Internet
Author: User
Tutorials | control | Example FIELDSET provides a grouping of controls that is more potentially valuable than optgroup, but requires the support of the client device to achieve a display effect.

Related properties:

Title titles

Comprehensive Example:

<?xml version= "1.0"?>
<! DOCTYPE WML public "-//wapforum//dtd WML 1.1//en" "Http://www.wapforum.org/DTD/wml_1.1.xml" >
<wml>

<template>
<do type= "Options" label= "Back" >
<prev/>
</do>
</template>

<card id= "Fields" >
<p> Field Type:
<select title= "Field type" >
<option onpick= "#nested" >Nested</option>
<option onpick= "#password" >Password</option>
</select>
</p>
</card>

<card id= "nested" >
<onevent type= "Onenterbackward" >
<prev/>
</onevent>
<do type= "Accept" label= "Done" >
<go href= "#done"/>
</do>
<p>
<fieldset title= "Name" >
The Name:
<input title= "The" "Name=" FName "/>
Last Name:
<input title= "Last" name= "lname"/>
</fieldset>
Gender:
<select title= "Gender" name= "Gender" >
<option value= "Male" >Male</option>
<option value= "female" >Female</option>
</select>
</p>
</card>

<card id= "Done" >
<p> $fname $lname is a $gender. </p>
</card>

<card id= "Password" >
<onevent type= "Onenterbackward" >
<prev/>
</onevent>
<do type= "Accept" label= "Done" >
<go href= "#passwd_done"/>
</do>
<p> Input a password:<br/>
Min 3 chars.
<input title= "Password" name= "passwd" type= "Password" format= "*m"/>
</p>
</card>

<card id= "Passwd_done" >
<p> Password was $passwd. </p>
</card>
</wml>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.