2
I have a field with the class "codigoBarra" where will be used barcode reader to fill it, at the end of reading with the reader it generates an n, I already managed to capture this and treat, however, when this happens, I need Focus to pass to the next field of the screen that is enabled.
In the photo, when finishing typing the SPI, which is the number that will be read by the reader, should pass to the CNPJ because the DATE and SITUATION fields are disabled for editing.
How is the structure of HTML?
– bfavaretto
How do you check the
\n
in the field? You can use this same check and put the focus on the field you want.$("#campo").focus()
– user3603