You should use <input type="number" pattern="[0-9]*">
.
What it does
- Show a numeric keyboard for iOS
- Remove the ability to enter decimal numbers within iOS
What it doesn't do
/** | |
* Follows https://www.w3.org/TR/2017/WD-html-aria-20171013/#docconformance | |
*/ | |
/** | |
* All aria roles | |
* @type {Array} | |
*/ | |
var roles = [ | |
"alert", "alertdialog", "application", "article", "banner", "button", "cell", |
.btn { | |
background: firebrick; | |
margin: 10vh; | |
color: white; | |
padding: 1em; | |
border: none; | |
-webkit-transition: .3s all; | |
transition: .3s all; | |
} | |
.btn:hover { |