tags:

views:

29

answers:

2
 $('#btnSelectAll').click(function() {

             $('.inputchbox').attr('checked', true);

        });

$('#btnCancel').click(function() {

         $('fieldset:not(:checked)').find("input,select,textarea").removeAttr('disabled');
        });

On cancel I need to enable only the checboxes which is checked? canI use somethign like this? thanks

on slectall button I am selecting all the checkbox from my fieldset but here I need to select only enabled checkboxes not disabled checkboxes.. so checkboxes are disabled on my fieldset on the load it self?

how to exclude diabled checkboxes?

thanks

+3  A: 

You can use the (':checkbox:enabled') selector to select only enabled checkboxes.

More info on :checked and :enabled

Sarfraz
+1  A: 
Pointy
That seems to be way to go if that is what OP is looking for possibly, his question isn't that clear though.
Sarfraz