Monday 15 April 2013

html - Can't set initial value of input element with type="time" in Chrome -



html - Can't set initial value of input element with type="time" in Chrome -

i chrome gives masking/format automatically when utilize type="time" attribute/value. can't seem set initial value control.

this:

<input type="time" value="05:00 pm" />

just renders blank (with masking) in chrome. , when form submitted, submits blank.

i'm guessing has format of string setting in value. don't know right format (and why format used wouldn't work - seems reasonable time format me).

here's jsfiddle play in case want it.

any suggestions?

try like:

<input type="time" value="17:00:00" />

read this.

html html5 google-chrome html-input

No comments:

Post a Comment