JSP代码
<td style="text-align:right;">启用标志:</td> <td> <span class="radioSpan"> <!-- var item = $('input[@name=items][@checked]').val(); --> <input type="radio" name="radioUseFlag" checked="chceked" value=1>在用 <input type="radio" name="radioUseFlag" value=2>停用 <input type="radio" name="radioUseFlag" value=3>移除 </span> </td>
JS代码
var useFlag = $("input[name='radioUseFlag']:checked").val(); //获取单选按钮的值