2011-03-15 80 views

回答

2
$(":radio[name='sectionRules'][value='1']").attr('checked', 'checked'); 

...虽然我不明白为什么要等待整个DOM加载,然后用JS设置它,而不是只设置在HTML checked属性在首位。

0

尝试

$(":radio[name='sectionRules']").attr('checked', true); 
相关问题