我很喜欢javascript。我的问题是如何在点击时显示我的单选按钮的值?如何在点击时输出我单选按钮的值
我有这样的代码:
<tr><td width="10px"></td><td width="60%">Neatness</td>
<td width="40%">
<input name="neat" type="radio" class="hover-star" value="1" title="Poor"/>
<input name="neat" type="radio" class="hover-star" value="2" title="Fair"/>
<input name="neat" type="radio" class="hover-star" value="3" title="Satisfactory"/>
<input name="neat" type="radio" class="hover-star" value="4" title="Outstanding"/>
</td></tr>
说,当我第一次单选按钮,它会显示1或等等..我怎样才能做到这一点?或者更好,但没有人知道如何在jQuery中做到这一点。
你想这样的:http://jsfiddle.net/rathoreahsan/UpKs5/ –