dimanche 23 août 2015

Why doesn't checkbox select all not working on Firefox at the first time?

I have a gridview, I've added a Checkbox column.

With checkbox select all, I use Jquery

        function checkBoxSelectAll() {
        $("#chkSelectAll").click(function () {
            $('input:checkbox').not(this).prop('checked', this.checked);
        });
    }

It work good on Chrome, Safari, Opera, IE11, Microsoft Edge. But on firefox, at the first time, It doesn't work. (I click on the checkbox select all but all of checkbox in this gridview doesn't checked). Then I unchecked the Checkbox Select All, then I checked it again, It worked, All checkbox in gridview be checked.

Anyone can tell me why?

I used Jquery 1.9.1.

Sorry for my bad English.

Thanks a lot,

Truong Mai




Aucun commentaire:

Enregistrer un commentaire