//一键正常
function benSetState() {
$(function () {
$(‘input[type=radio]‘).each(function () {
if ($(this).val() == "1") {
$(this).attr(‘checked‘,‘true‘);
}
})
})
}
<td align="center"><input type="radio" checked="checked" name="rdState1" value="1" />正常 <input type="radio" name="rdState2" value="2" />损毁 </td>
时间: 2024-11-09 01:09:25