input[type=number] って数字以外だと value が empty string (たぶん) で、 value.length が 0 になるのか。

Follow

input[type=number] に雑につけた text-overflow が効かなかった(ダメもとで試した)から、桁あふれ(数字以外の入力を含む)したときに、JS で width 広げたろと思ったのだが、むー

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!