在jQuery中,让表单当中的radio按钮默认选中第一个怎么做?

如题所述

第1个回答  2012-02-25
<input type="radio" id="first" checked/>
<input type="radio" id="second" />
<input type="radio" id="third" />追问

我说在jQuery中,这是前提
这个是我自己推荐的:
1>jQuery("table.grid0 tr :radio[name=bo.selTaskId]")[0].checked=true;
2>jQuery(':radio[name=bo.selTaskId]').each(function(){
jQuery(this).attr('checked','checked');
return false;
});

本回答被提问者采纳