大水牛

 

全选

function jsChCheck(objName) {
            $("input:checkbox[name='chkIdx']").each(function () {
                this.checked = objName.checked;
            });
        } 
 <input type="button"  name="chkIdx" onclick='jsChCheck(this)' />
 <input type="checkbox"  name="chkIdx" />

  

function jsChCheck(objName) {            $("input:checkbox[name='chkIdx']").each(function () {                this.checked = objName.checked;            });        } 

posted on 2016-02-03 14:39  liucyi  阅读(187)  评论(0编辑  收藏  举报

导航