0

I have a simple form : 1 field that takes input from a bar-code reader. With some manipulation, a list of records is displayed with a slider for seeing all the records if required. When the user clicks on the slider (or anywhere out of the single input field) the bar-code reader input is not placed as a value of the field of the form... which is a normal behavior.

Is it possible to always have the cursor placed in the input field ?

Thanks

KBL
  • 1
  • PHP runs on the server, it has nothing to do with interactions on the client. This needs to be done in JavaScript. – Barmar Jul 08 '22 at 17:50
  • Does this answer your question? [Javascript catch input when no input has focus](https://stackoverflow.com/questions/43981445/javascript-catch-input-when-no-input-has-focus) – imvain2 Jul 08 '22 at 19:36
  • YES!!! Wonderful. It was my first question... I should have ask before instead of pulling my hairs off! – KBL Jul 09 '22 at 00:53
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jul 09 '22 at 01:41

0 Answers0