I try to use this code as a basis and want to modify the output, after scanning a qr code before putting it out in the textbox.
let's say I have a qr containing "12345", I want to scan it and just get "123" of the whole content as output in the textbox. But I can't manage where to put a variable in the js part, taking the putput, modify it and after that giving it back to the input field.
I'm a rookie in js, so this might be a pretty dumb question.
like at the last line of the js part:
var test = reader.readAsDataURL(node.files[0]);
var output = test.substr(0,3);
return output;
Here's the full code on w3schools.com again