Placeholder text for an input type="number" does not show in webkit ICS

Viewed 14399

I have the following input field

<input type="number" id="zip-code" placeholder="Zip code" />

Placeholder is shown in normal browsers except android 4.0 and above and the width also get reduced compared to other fields.
What could be the error?

4 Answers

try this:

<input type="text" pattern="[0-9]" id="zip-code" placeholder="Zip code">
Related