JSFiddle - React, Tailwind, and code Playground
by Alex Alex
HTML
<input type="number" inputmode="numeric" pattern="\d*" maxlength="12">
JavaScript
document.querySelector('input').onkeyup = function (e) {
//alert(e.which);
};
by Alex Alex
<input type="number" inputmode="numeric" pattern="\d*" maxlength="12">
document.querySelector('input').onkeyup = function (e) {
//alert(e.which);
};