suffix

Add a text suffix to <input type=“number”>

为君一笑 提交于 2019-11-26 20:59:11
问题 I currently have a number of inputs like this: <input type="number" id="milliseconds"> This input field is used to represent a value in milliseconds. I do however have multiple number inputs which take a value in dB or percentages. <input type="number" id="decibel"> <input type="number" id="percentages"> What I would like to do is add a type suffix to the input field to let users know what kind of value the input represents. Something like this: (This image is edited to show what result I