jquery - While reading Barcode from scanner, code needs to hide keyboard on Text Field -


i trying have focus on input element using

$('#barcodescanner').focus(); 

where barcodescanner input textbox, opens keyboard enter input. trying hide keyboard using

    keyboard.hide(); 

it's not working in code. can me hide keyboard other way?

it not working because have focused on text field, default text field open keyboard. can handle in several ways.

first don't focus on text input , focus on div or other element, , there should event on div or other element, when char(13) or carriage return read barcode should put value in hidden input submit form. guess know how form works.

2nd way, make text disabled , same process first 1 should work , case don't need hidden input.

3rd way, can hide text input display:none should fix problem.

4th, blur after focus , handle scenario.

let me know if works.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -