JQuery OnChange
$("input").change(function(){
alert("The text has been changed.");
});
the preacher
$("input").change(function(){
alert("The text has been changed.");
});
$('select').on('change', function() {
alert( this.value );
});
$(document).on("input", "#payedValue", function () {
var mad = $("#madyoniya").val();
var payed = $(this).val();
$("#rest").val(parseFloat(mad) - parseFloat(payed));
});
// On element change.
$('mydiv').bind('DOMSubtreeModified', function () {
console.log('changed');
});
$(document).on('change', 'input', function() {
// Does some stuff and logs the event to the console
});
$('.some_class').change(function (e) {
console.log(e.target);
console.log($(':focus'));
});