javascript - Disabled textbox change event -


short explanation

i want whenever disabled textbox value changed

detailed explanation

i have disabled text box value setting programitically want bind change event of disabled textbox fire other function. tried won't work.

$('#rate').change(function() {            // alert("change event called");             calculatemedicine();         });  $('input[id$=rate]').bind("change", function () {             calculatemedicine();         }); 

this both thing don't work me , don't idea put function calculatemedicine() place possibly rate textbox changing.so apart solution appreciated

assuming your input has disable class on on click or else check

 if ($( "#input" ).hasclass( "disable" )) { logics , codes here //   } 

//hope help


Comments