我有一个单选按钮列表来选择两种服务之一。
<table align="center" width="100%">
<tr>
<td colspan="2">
<input type="radio" name="selectedValue" value="serviceWise">
Service-Wise
<input type="radio" name="selectedValue" value="districtWise">
District-Wise
</td>
</tr>
</table>
<table>
<tr>
<td>
Service Name
</td>
</tr>
</table>
我需要为这两个选项显示不同的行。When Service-Wise is selected then Service name should be displayed and when District-Wise is selected then District name should be displayed. 例如,在上面的代码中,我显示了服务名称,但实际上它应该只在选择服务明智选项时出现。我只停留在显示部分,这就是为什么我没有在代码中提到任何数据检索部分。我想在jsp页面本身做,非常感谢有人的帮助。