how to detect change in input tag javascript site:stackoverflow.com 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
});