WML tutorial 11: text box control (INPUT)

xiaoxiao2021-03-06  39

WML Tutorial 11: Text Box Control (INPUT)

Used to enter text, in addition to the Name property is necessary, other parameters are optional.

Related properties:

Title, the title of the input box. TYPE, the default value is text, if you select Password, the input data is displayed *. Name, specify the name of the variable used to store the input text. Value, the same properties with SELECT, NAME is used to store variable data, and Value is used to provide default values. Format, used to format the input data, the available tags are as follows, use "one digital tag" and "* tag" form, the former represents N tag type characters, such as 3X, the latter represents any (less than The value of the MaxLength attribute) tag type character.

Marker description

A Any symbol or uppercase letter (excluding numbers) a Any symbol or lowercase letter (excluding numbers) n Any number (excluding symbols or letters) x any symbols, numbers or uppercase letters (not changed to lowercase letters) x any symbol , Digital or lowercase letters (can not change to uppercase letters) M, digital or uppercase letters (can change to lowercase letters) or multiple characters, default is the first word uppercase M, digital or lowercase letters (can be changed to uppercase letters ) Or multiple characters, default is the first lowercase

The MaxLength property specifies the maximum character length that the user can enter, the maximum limit is 256 characters. The EMPTYOK attribute indicates whether the user does not fill the input box, and the default is false, that is, fill. The size property, the input box shows the length, and is currently not supported. TabINDEX properties, which is similar to which option is set in the HTML form, which determines this sequence, and the number is large. Not supported.

Example:

First Name: Last Name: Age:

转载请注明原文地址:https://www.9cbs.com/read-68926.html

New Post(0)