how to input only 1 digit code example
Example: make only one digit input box
<input type="text" maxlength="1" oninput="this.value=this.value.replace(/[^0-9]/g,'');" />
<input type="text" maxlength="1" oninput="this.value=this.value.replace(/[^0-9]/g,'');" />