input之checkbox用法
来源:互联网 发布:卖家卖假货淘宝介入 编辑:程序博客网 时间:2024/06/06 07:31
function getFids(){ fids=""; $('input[name="chBox"]:checked').each(function(){ fids+=$(this).val()+","; }); fids=fids.substring(0,fids.length-1); alert(fids); } function getAllFids(){ fids=""; if($('input[name="allBox"]').attr("checked")){//全选判定全选菜单是否选中 $('input[name="chBox"]').each(function(){ $(this).attr("checked",true); //alert($(this).attr("checked")); fids+=$(this).val()+","; fids=fids.substring(0,fids.length-1); }); } else{ $('input[name="chBox"]').each(function(){//遍历所有name位chBox的复选框 $(this).attr("checked",false); //alert($(this).attr("checked")); fids=""; }); } //fids=fids.substring(0,fids.length-1); //alert(fids); }
0 0
- input之checkbox用法
- jQuery 操作 input 之 checkbox
- html之checkbox------checkbox只是input框的type属性
- input checkbox
- <input>checkbox
- CSS定义Input之Radio和Checkbox的样式
- CSS定义Input之Radio和Checkbox的样式
- input checkbox jquery全选
- input checkbox的坑
- angular中的input[checkbox]
- input,checkbox启用禁用
- input type="checkbox"
- Python起步之print & input用法总结
- checkbox用法
- CHECKBOX用法
- checkbox用法
- CheckBox用法
- checkbox用法
- 找回误删除的文件
- 【HTML+CSS】(1)基础语法
- 修改Android启动画面
- CodeForces 515C. Drazil and Fa
- standford NLP课程笔记二 分词
- input之checkbox用法
- HLS系统快速部署指南
- Tilcon v5.9 for WindRiver Linux 1DVD
- C#基础-----面向对象
- xfire
- 九度OJ-题目1283:第一个只出现一次的字符
- Android调用另一个程序的方法
- Thunderhead Engineering PyroSim 2015.2.0604 Win64 1CD火灾消防动态模拟
- 20150609类和对象_练习