Wml-select-tag
提供:Dev Guides
WML <select>タグ
<select> … </select> WML要素は選択リストの定義に使用され、<option> … </option>タグは選択リストのアイテムの定義に使用されます。 一部のWAPブラウザでは、アイテムはラジオボタンとして表示されます。 <option> … </option>タグのペアは、<select> … </select>タグで囲む必要があります。
属性:
この要素は、次の属性をサポートしています。
Attribute | Value | Description |
---|---|---|
iname | text | Names the variable that is set with the index result of the selection |
ivalue | text | Sets the pre-selected option element |
multiple |
|
Sets whether multiple items can be selected. Default is "false" |
name | text | Names the variable that is set with the result of the selection |
tabindex | number | Sets the tabbing position for the select element |
title | text | Sets a title for the list |
value | text | Sets the default value of the variable in the "name" attribute |
xml:lang | language_code | Sets the language used in the element |
class | class data | Sets a class name for the element. |
id | element ID | A unique ID for the element. |
例:
以下は、この要素の使用法を示す例です。
このプログラムをロードすると、次の画面が表示されます。
オプションを強調表示して入力すると、次の画面が表示されます。
複数のオプションを選択するオプションを提供し、次のように_multiple_属性を_true_に設定します。
これにより、次のように複数のオプションを選択する画面が表示されます。