I Wanted to Type a Number

Zach Leatherman on the weirdnesses of numeric inputs. A new hero is born:

Luckily, the web standards people have recognized this mess and have standardized an appetizing alternative: the inputmode attribute. inputmode lets you directly specify which type of keyboard to use, independent of the type attribute value.

This new attribute isn’t supported anywhere yet, though.

They’ve also create a new plugin to help normalized numeric input behavior.

Direct Link to ArticlePermalink


I Wanted to Type a Number is a post from CSS-Tricks

CSS-Tricks

Comments

comments

Add a Comment

Your email address will not be published. Required fields are marked *