jquery 动态选中radio

 

roleStatus为radio的name 

$('#roleStatus_' + id).text()为要选择的radio的值

更多:http://lichuhui.javaeye.com/blog/271574

$("#roleStatus1").attr("checked",true);选中指定ID的radio

$("input[name=roleStatus][type=radio][value="2"]").attr("checked",true);//value值为2的被选中

原文地址:https://www.cnblogs.com/huozhicheng/p/2533156.html