why is <input type=“number” maxlength=“3”> not working in Safari?

后端 未结 8 1440
刺人心
刺人心 2020-12-09 01:55

I like to have an input with maximum 3 characters. In Firefox everything works fine I can only write 3 numbers inside the input - but in safari you can write a lot of number

8条回答
  •  天命终不由人
    2020-12-09 02:14

    Basically Max and Min properties are not supported in Safari browser yet. I can see no flaw in the syntax. Are u using the Safari version 1.3+? or below that? Because maxlength property is supported from safari 1.3+.

提交回复
热议问题