<input type="text" id="i_fname" class="c_fname" name="n_fname"/>
For this textbox need a way to only accept barcode scanner inputs & prevent the keyboard inputs. I already tried below thing & it didn't worked for me
document.getElementById("i_fname").disabled = true;
document.getElementById("i_fname").focus();