<html><head><script language="javascript">$(document).ready(function(){$("#qx").click(function() {if ($(this).attr("checked") ==true) {//全选$("input[name='yf']").each(function(){$(this).attr("checked",true)});} else {// 取消全选$("input[name='yf']").each(function() {$(this).attr("checked",false);});}});});</script></head><body>选择月份<inputtype="checkbox" name="qx" id="qx"value="1" />全选<input type="checkbox"name="yf" id="yf" value="1" />1月<inputtype="checkbox" name="yf" id="yf"value="2" />2月<inputtype="checkbox" name="yf" id="yf"value="3" />3月<inputtype="checkbox" name="yf" id="yf"value="4" />4月<inputtype="checkbox" name="yf" id="yf" value="5"/>5月<inputtype="checkbox" name="yf" id="yf"value="6" />6月<inputtype="checkbox" name="yf" id="yf"value="7" />7月<inputtype="checkbox" name="yf" id="yf"value="8" />8月<inputtype="checkbox" name="yf" id="yf"value="9" />9月<inputtype="checkbox" name="yf" id="yf"value="10" />10月<inputtype="checkbox" name="yf" id="yf"value="11" />11月<input type="checkbox"name="yf" id="yf" value="12" />12月</body></html>
點擊查看更多內(nèi)容
為 TA 點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優(yōu)質(zhì)文章
正在加載中
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦