jquery设置radio选中方法
时间:2021-07-10 11:23:10
收藏:0
阅读:24
一、设置选中方法
$("input[name=‘types‘]").get(0).checked=true;
$("input[name=‘types‘]").attr(‘checked‘,‘true‘);
$("input[name=‘types‘]:eq(0)").attr("checked",‘checked‘);
$("input[name=‘types‘]:checked").val(); //获取被选中Radio的Value值
//设置disabled
$("[name=‘type‘]").attr("disabled","disabled");
//设置未选中
$("[name=‘ejlx1‘]").removeAttr("checked");
原文:https://www.cnblogs.com/jameskj/p/14993039.html
评论(0)