如何使用jQuery或純JS重置所有復(fù)選框
如何使用jQuery或純JS重置所有復(fù)選框
慕工程0101907
2018-11-27 05:00:27
TA貢獻(xiàn)1921條經(jīng)驗(yàn) 獲得超9個(gè)贊
如果要使用窗體的重置功能,最好使用以下方法:
1 | $('input[type=checkbox]').attr('checked',true); |
或
1 | $('input[type=checkbox]').attr('checked',false); |
舉報(bào)