随笔分类 - jQuery
jQuery的开发园地
摘要:在使用javascript批量绑定页面上的元素并传递递增编号时,需要如下编写:<html>部分的代码:1 <input type="button" id="btn1" value="按钮1" />2 <input type="button" id="btn2" value="按钮2" />3 <input type="button" id="btn3" value="按钮3"
阅读全文
摘要:将以下代码复制到html页面中,点击两个checkbox,左边的能够正常显示选中状态,右面的则一直显示checked(选中)状态。<input type="checkbox" id="tc" onclick="ta()" /><input type="checkbox" id="tc2" checked="checked" onclick="tb()" /><script language="javascript&q
阅读全文