Wednesday 15 June 2011

jquery - Disable 'Add' button if checkbox is checked -


Disabling the button is working fine but for whatever purpose I am working to maintain the ID Do not use it because this functionality will repeat the functionality many times now what is happening is that since the selection of buttons is selector, when I select a checkbox, both buttons are disabled. I tried to use my sister (sister) but I lost it Is there any help? Thank you. $ ('Remove-Ether'). siblings (). Ether ('disabled', 'wrong');

I assume that you only try to enable / disable the related button Checkboxes: $ ('.- selected'). ('Change', function () {$ (this) .closest ('label'). Next ('Remove' -attr ') .prop (' disabled ', this.checked);});



No comments:

Post a Comment