xxxxxxxxxx
$("input").change(function(){
alert("The text has been changed.");
});
$(document).on('change', 'input', function() {
// Does some stuff and logs the event to the console
});
xxxxxxxxxx
// modify #inputId selector as per your code
$( "#inputId" ).change(function() {
alert( "Handler for .change() called." );
});
//OR
$("#InputId").on('change', function(){
alert( 'Handler for "change" called.' );
});
// OR
$("body").on('change', '#InputId', function(){
alert( 'Handler for "change" called.' );
});
xxxxxxxxxx
$(document).on('change', 'input', function() {
// Does some stuff and logs the event to the console
});
xxxxxxxxxx
// On element change.
$('mydiv').bind('DOMSubtreeModified', function () {
console.log('changed');
});
xxxxxxxxxx
$('#editpricelist_box').change(function ($e){
$('input[name="edit_unit_price"]').val(parseFloat(this.val()).toFixed(2));
console.log(this.val());
});