【发布时间】:2016-03-25 21:11:18
【问题描述】:
我的 JSP 页面中有三个单选按钮,一旦选中,我想在单选按钮下方的 div 中显示所选按钮的值。找到下面的代码。根据选择,我想在 display 中显示值。
<div>
<div class="service">
<input type="radio" name="Service" value="Service1 Selected" Checked> <b>Service-1</b></input>
<input type="radio" name="Service" value="Service2 Selected"><b>Service-2</b></input>
<input type="radio" name="Service" value="Service3 Selected"><b>Service-3</b></input>
</div>
<div class="display"></div>
【问题讨论】:
-
[link](stackoverflow.com/questions/11689530/…) 看看这个链接可能对你有帮助。
-
谢谢,但我的要求与共享的链接不同。我不想显示该值,除非它被选中,并且该值将根据选择显示在 div 中
标签: jsp