-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple textbox #3
Comments
Well if you focus your inputs before scanning you don't need this plugin. |
I am with kcviper on this one, what if the user scans multiple codes in the same form. Any work around? |
You mean each time he scans, the code should go in the next input ? |
exactly! I am currently trying to make it work |
You could set the plugin in one input and implement the |
yes that works great but what if I have multiple barcodes to scan on different inputs. the |
No you put the plugin only on one input responsible for all the others. Example: <form id="your_form">
<input type="text" class="scanable">
<input type="text" class="scanable">
<input type="text" class="scanable">
<input type="text" class="scanable">
</form> $('#your_form').codeScanner({
onScan: function ($element, code) {
$element.find('input.scanable[value=""]').first().val(code);
}
}); Not tested but should work |
managed to do something similar, thank you very much! |
I'm having issues with multiple textboxes to execute different scripts.
Because right now when selecting one textbox, it's executing all textboxes scripts.
The text was updated successfully, but these errors were encountered: