嗨我有一个下拉菜单,我有几个选项可用,并且在同一页面中我有几个单选按钮,如果我想根据我选择的选项从下拉列表中禁用和启用单选按钮:
这是我的代码片段:
<form:form action="/action">
<table>
<tr>
<td class="text">Please select</td>
<td></td>
<td><form:select path="unit" dropdown="${dropdownvalues}" label="unitName" value="UnitId" /></td>
</tr>
<tr>
<td><form:radiobutton path="adminTask" value="${command.test1}" />${command.test1.description}
</td>
<td></td>
<td></td>
</tr>
<tr>
<td><form:radiobutton path="adminTask" value="${command.test2}" />${command.test2.description}
</td>
<td></td>
<td></td>
</tr>
<tr>
<td><form:radiobutton path="adminTask" value="${command.test3}" />${command.test3.description}
</td>
<td></td>
<td></td>
</tr>
</table>
</form>