jQuery复选框选择在IE中不起作用,并且在Firefox中起作用 [英] jQuery checkbox selection is not working in IE and is working in Firefox

查看:54
本文介绍了jQuery复选框选择在IE中不起作用,并且在Firefox中起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的全选按钮代码.单击此按钮,我将选中所有复选框.

This is my selectall button code..on clicking this i am selecting all checkboxes..

   $('#PbtnSelectAll').click(function() {
        $('#PricingEditExceptions input[type=checkbox]').attr('checked', 'checked');
            $('#PbtnSubmit').show();
            $('#PbtnCancel').show();
            $('fieldset').find("input:not(:checkbox),select,textarea").attr('disabled',true);
            $('#genericfieldset').find("input,select,textarea").removeAttr('disabled');
        });

此代码在Firefox中不能在IE中运行.为什么会这样?

This code working in Firefox not in IE. Why it's doing like this?

推荐答案

尝试使用true,false布尔值.您可以尝试 http://www.iknowkungfoo.com/blog/index.cfm/2008/7/9/Check-All-Checkboxes-with-JQuery 吗?

Try to use true , false boolean. Can you try http://www.iknowkungfoo.com/blog/index.cfm/2008/7/9/Check-All-Checkboxes-with-JQuery ?

它在我的IE 7中正常工作.

it's working in my IE 7.

这篇关于jQuery复选框选择在IE中不起作用,并且在Firefox中起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆