I would like to scan QR-Codes with a scanner. I already have a scanner and when I put the focus in a hidden textarea he places the text in the textarea when I scan a QR-Code.
I would like to do something with the data outputted in the specific textarea. Now I have in my jQuery the following:
$("#qr_data").bind("input", function (e) {
console.log(e);
});
The problem is that the loading of the QR-data in my textarea takes 2 seconds or so. So the function is called like 20 times ... . I only want the last data so I can do something with it. How could I do this?