Been searching a way to detect real time change on the input but not changed by user which is changed by also a code
Example: QR Scanned(not my code lib. only) > text output will go to certain text input > when text changed it throws an alert and nothing will happen if there's no scanned or the value is recent scanned.
My current progress to that code is pasted below, it is not working unless it was change by user qr text output is working but alert not working since it will no get triggered by the "change".
$("#UUID").on("change", function(e) {
var UUID = document.getElementById("UUID").value;
if ("SCANNING" != UUID) {
alert(UUID);
}
});
the idle value of text input is "SCANNING" thats why i left the if else statement != "SCANNING" so it will throw alerts when not getting scan by other output/value. Hoping to get help in not throwing alerts to when scanning the same value so it won't spam alerts.
Here's a video demo of the scanner via Imgur