WML tutorial 9: SELECT LIST control
The ability to control the form can prove whether an HTML designer is professional, and many interactions must rely on the form. WML does not have a form attribute, but WML can directly use the control, which can also achieve the effect of using the form. Therefore, the level of using the control can reflect the level of production of WML designers.
The WML control has two series of SELECT LIST and INPUT BOX, each of which includes several sub-series, which can basically meet the needs of form design.
Select list control (select List) Select has two pairs of properties that are also easily confusing: Name, Value, IName, Ivalue. The differences and uses of these four attributes are less easy to describe clearance, and they will be easily understood later.
Each SELECT is a collection of one or more options, and the Option is returned to the Name and INAME of the SELECT element.
Example:
Related properties:
1. The value of Multiple This Boolean variable determines whether to allow multiple options, the SELECT control is allowed to check when True, otherwise the opposite.
2. Name & Value The main role of this set of variables is to obtain the return value of this Option, Value provides the default value of the Name.
3. INAME & IVALUE is similar to the previous set of parameters, and different is the serial number of IVALUE returns a valid Option. The selected control is indicated by its serial number, 0 represents no option is selected, if the second and third simultaneous selection are 2; 3
4. Title is supplied to the browser as the title parameter, but the different browser processing modes are different, and some browsers direct display options without displaying the title, some browser displays the title, press the Select key to enter the selection interface.
5. TabINDEX is provided to the sequence number parameter of the browser.
2. Option control option is only included in SELECT, it is impossible to use it separately.
Related properties:
1. Value Option return value, if the current Option is selected, the value of this value is transmitted to the Name variable of the SELECT element.
2. Title provides the option title for your browser.
3. ONPICK If the current Option is selected, the browser jumps to the specified URL.
Example 1
Please Choice Your Favorite Web.