【发布时间】:2014-08-02 00:26:37
【问题描述】:
我有以下单选按钮代码:
Test.html
<table>
<tr>
<td>
<webobject name=RadioButton1></webobject>
<webobject name=LocalString1>A</webobject>
</td>
<td>
<webobject name=RadioButton2></webobject>
<webobject name=LocalString2>B</webobject>
</td>
<td>
<webobject name=RadioButton3></webobject>
<webobject name=LocalString3>C</webobject>
</td>
</tr>
</table>
Test.wod
RadioButton1: WORadioButton {
name = "type";
selection = requestType;
value = 0;
}
RadioButton2: WORadioButton {
name = "type";
selection = requestType;
value = 1;
}
RadioButton3: WORadioButton {
name = "type";
selection = requestType;
value = 2;
}
我有以下 webbjects 要显示:A、B 和 C
<webobject name=A></webobject>
<webobject name=B></webobject>
<webobject name=C></webobject>
问题是:
我想在用户选择 RadioButton1 时显示 Web 对象 A,在选择 RadioButton2 时显示 B,在选择 3 时显示 C。
我对单选按钮应用什么条件以及如何应用?
【问题讨论】:
-
Tad 可能是正确的,但我必须澄清一下。您是在询问如何在用户选择其中一个单选按钮并点击表单提交按钮时显示正确的内容,还是希望在用户单击其中一个单选按钮时向用户显示某些内容?跨度>
标签: java html webobjects