HTML5 のフォームの新機能、 type="number" の step 属性はなかなか便利ですが、入力補助のみで強制はさせたくないという場合もあります。
そんなときは、novalidate 属性をセットすればとりあえずごまかすことは可能です。他の入力値チェックもすべて無効になりますが…。
<form novalidate="novalidate">
<input name="number" type="text" type="number" step="100" />
Go to list of users who liked
More than 5 years have passed since last update.
HTML5 のフォームの新機能、 type="number" の step 属性はなかなか便利ですが、入力補助のみで強制はさせたくないという場合もあります。
そんなときは、novalidate 属性をセットすればとりあえずごまかすことは可能です。他の入力値チェックもすべて無効になりますが…。
<form novalidate="novalidate">
<input name="number" type="text" type="number" step="100" />
Register as a new user and use Qiita more conveniently
Go to list of users who liked