checkbox 全选和反选
2015-10-09 12:58
225 查看
//全选和反选
function selectWorkdayAll() {
if($("#workdayCon").attr("checked")){
$("input[name='workDayHours']").attr("checked",true);
}else{
$("input[name='workDayHours']").attr("checked",false);
}
}
function selectWeekendAll(){
if($("#weekendCon").attr("checked")){
$("input[name='weekendHours']").attr("checked",true);
}else{
$("input[name='weekendHours']").attr("checked",false);
}
}
function selectWorkdayAll() {
if($("#workdayCon").attr("checked")){
$("input[name='workDayHours']").attr("checked",true);
}else{
$("input[name='workDayHours']").attr("checked",false);
}
}
function selectWeekendAll(){
if($("#weekendCon").attr("checked")){
$("input[name='weekendHours']").attr("checked",true);
}else{
$("input[name='weekendHours']").attr("checked",false);
}
}
相关文章推荐
- UVa 1208 - Oreon
- 快递100接口解析与Volley自定义XML解析
- 最全的安卓镜像和最全的android-studio
- 【编译原理】:简易的词法分析器
- 用Java语言实现单向链表的方法
- Arduino IDE的#ifdef bug
- SyncroSVN 使用手册
- wince开发环境搭建与全套教程
- JSP的九大内置对象
- poi导入
- ActionBar的界面跳转
- _default_ VirtualHost overlap on port 80, the first has precedence
- Xshell无法连接虚拟机中的Ubuntu
- NSTimer你真的会用了吗
- Mysql 主从复制-Binlog详细解析(Row格式)
- kettle 通过JDBC 连接SQL Server(Error occurred while trying to connect to the database)
- leetcode 290 Word Pattern
- Visual C++学习笔记1:一定要注意ANSI和UNICODE差额
- PHP中的sprintf()函数的学习研究笔记
- 质因数分解程序