HTML5 Pre-Load Date

Not sure why this doesn't work, but when I put a value in the input the field still loads empty.

<input type="datetime-local" class="form-control" name="dateToPost" value="05/10/2015 12:00 PM" required/>

Open in new window


Fiddle: https://jsfiddle.net/vmqmexfz/
LVL 12
Nathan RileyFounderAsked:
Who is Participating?
 
Julian HansenCommented:
datetime-local is not supported in all browsers

Refer following link
http://www.w3schools.com/jsref/prop_datetime-local_value.asp
0
 
Nathan RileyFounderAuthor Commented:
Ah, well crap.  So I'm going to have to use the jquery datetimepicker then or is there another HTML5 asset to do this?
0
 
Julian HansenCommented:
<input type="text">
<input type="date">
<input type="datetime">

Pretty much covers it for HTML5

More info here

http://www.w3schools.com/htmL/html_form_input_types.asp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.