WML Tutorial 11: Text box control (Input)

Source: Internet
Author: User
Tags format html form lowercase variable uppercase letter
Tutorials | control | text box <input name= "name" title= "title" type= "type" value= "value" format= "specifier" emptyok= "false|true" size= " n "maxlength=" n "tabindex=" n "/>

Used to enter text, except that the Name property is necessary, and other parameters are optional.

Related properties:

Title, the caption of the input box.
Type, the default value is text, and if you select password, the input data appears as *.
Name, specifies the name of the variable used to store the input text.
Value, similar to the same property of select, name is used to store variable data, and value is used to provide default values.
Format, which is used for formatting the input data, is available as follows, using the form of "one digit mark" and "* mark", which represents n-tagged characters, such as 3X, and the latter represents any marked character (less than the value of the MaxLength property).

Tag description

A any symbol or capital letter (excluding numbers)
A any symbol or lowercase letter (excluding numbers)
N any number (excluding symbols or letters)
X any symbol, number, or capital letter (cannot be changed to lowercase letters)
x any symbol, number, or lowercase letter (cannot be changed to uppercase letters)
M any symbol, number, or uppercase letter (can be changed to lowercase letters) or more than one character, default to uppercase
m any symbol, number, or lowercase letter (can be changed to uppercase letters) or multiple characters, default to lowercase

The MaxLength property specifies the maximum length of characters that a user can enter, with a maximum limit of 256 characters.
Emptyok property, which indicates whether the user can fill out the entry box, default to False.
Size property, the input box displays the length and is not currently supported.
The TabIndex property, which is similar to the choice in which the focus falls after the TAB key is pressed in an HTML form, which determines the order in which the number is left behind. Not currently supported.

Example:

<card>
<p>
The name:
<input type= "text" Name= "the" "/><br/>
Last Name:
<input type= "text" Name= "last"/><br/>
Age:
<input type= "text" name= "Age" format= "3N"/>
</p>
</card>



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.