js单选框赋值

$("input[name='sex'][value='1']").prop("checked",true);
$("input[name='sex'][value='1']").attr("checked",true);

 

posted @ 2022-06-18 19:56  一隅桥畔  阅读(539)  评论(0)    收藏  举报