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的被选中

posted @ 2011-02-25 14:26  Horrison  阅读(1041)  评论(0编辑  收藏  举报