check for change in input js code example
Example: javascript detect input change
$('#inputID').on("change keyup paste", function() {
//my input text has changed
});
$('#inputID').on("change keyup paste", function() {
//my input text has changed
});