actually, if i read the documentation correctly, pattern
is not supported for type=number
. hence, stick to type=text
and then add pattern="..."
for the front end validation. in the next step, you will then need to convert the text input into a real number if it wasn't compatible to JavaScript/computing format.
2017 and still no good solution for this common problem...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…