jQuery checkbox selection is not working in IE and is working in Firefox

后端 未结 4 1409
抹茶落季
抹茶落季 2021-01-24 20:38

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

   $(\'#PbtnSelectAll\').click(function() {
        $(\'#PricingEditExceptions         


        
相关标签:
4条回答
  • 2021-01-24 21:04

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

    it's working in my IE 7.

    0 讨论(0)
  • 2021-01-24 21:07

    Check the id's of all your elements. I'd be using .PbtnSelectAll etc and giving each element a class of the same. At least the class doesn't change like the name can.

    0 讨论(0)
  • 2021-01-24 21:09

    try using "#Fieldset input:checkbox" as your selector.

    0 讨论(0)
  • 2021-01-24 21:18

    Try using a boolean instead

    $('#Fieldset input[type=checkbox]').attr('checked',true);

    0 讨论(0)
提交回复
热议问题