我有以下单选按钮代码:
测试.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>
测试文件
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。
我将什么条件应用于单选按钮以及如何?