I am currently looking for an event listener for input type=checkbox that fires when disable state changes
- any trigger changes disable state of any checkbox on the site
- event listener for state change fires
I do not want to add the event to the first trigger which changes the checkbox state. It must be independent, for the trigger may change.
What I have tried so far:
$(function(){
$('.trigger').live('click', function(){
$('.eventbox').attr('disabled','disabled');
});
$('.eventbox').live('change', function(){
alert('state changed');
});
});
Unfortunately change doesn't work.
thank you for your help. jesse