我已将单选按钮定义如下
<tr>
<th height="35" scope="row">
<div align="left">Response for Instruction</div>
</th>
<th scope="row"><input name="a" type="radio" value="Excellent" /></th>
<th scope="row"><input name="a" type="radio" value="Good" /></th>
<th scope="row"><input name="a" type="radio" value="Poor" /></th>
<th scope="row"><input name="a" type="radio" value="Needs Improvement " /></th>
</tr>
$(document).ready(function() {
var a = $('#a').attr('value');
alert(a);
}
但它显示未定义。
谢谢