官术网_书友最值得收藏!

Chapter #13. Use Numeric Entry Fields for Precise Integers

If you're trying to get an integer (a whole number) from a user—for example the number of widgets they want to order or the number of days an event runs for—it makes no sense to offer them a free text input field where they can enter "a few" or "Use Numeric Entry Fields for Precise Integers"A numeric entry field in HTML is:

<input type="number">

This will display slightly differently on different devicesand that's the whole point. By adapting to the control system of the client's device, the user gets simpler entry and makes fewer mistakes. You also get fewer emoji in your database.

Of course, a huge benefit here is that this will improve your form conversion rates, by giving users on both desktop and mobile a quick, painless way to enter numbers into forms. Users abandon forms because they're too long, ask for too many details or because it's difficult to enter information into the form.

主站蜘蛛池模板: 新安县| 石台县| 肃北| 安阳市| 环江| 张家界市| 万安县| 柏乡县| 石阡县| 镇江市| 招远市| 平谷区| 永平县| 安阳市| 横山县| 资溪县| 云林县| 潼南县| 余江县| 宾川县| 南川市| 富蕴县| 义乌市| 申扎县| 托克逊县| 台东县| 司法| 安仁县| 湟源县| 阿克苏市| 海丰县| 宜宾县| 海晏县| 茂名市| 邛崃市| 深州市| 莒南县| 汝州市| 正镶白旗| 桂林市| 宁城县|