2011-03-15 42 views

回答

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

...雖然我不明白爲什麼要等待整個DOM加載,然後用JS設置它,而不是隻設置在HTML checked屬性在首位。

0

嘗試

$(":radio[name='sectionRules']").attr('checked', true); 
相關問題