入力が有効または無効のときにメソッドを実行したい。jQueryでできますか?
これと似たようなことをしたい ( non-working code below
):-
$('input').on('enabled', function(e){
alert( 'Just now someone enabled : ' + $(this).attr('id') );
executeSomeHandlerForENABLED();
}).on('disabled', function(e){
alert( 'Just now someone disabled : ' + $(this).attr('id') );
executeSomeHandlerForDISABLED();
});