jquery if val changes code example
Example 1: jquery onchange input value
$("input").change(function(){
alert("The text has been changed.");
});
Example 2: jquery detect textarea change
$('#myTextAreaID').on('input propertychange paste', function() {
//my Textarea content has changed
});