I have an input element of type time on my page which I save off the user time selection in the format which was given 12:22. But I am having trouble loading the time 12:22 string back into the element on a return session.
How does one load the time, and show the time, in a type input element?
Element
<input type="time" id="Time1"/>
I've tried
$('#Time1').val = '3:22';
and
$('#Time1').value = '3:22';
with no luck.
My initial value in the config file (not set by the user) had a value of 3 and should be 03. I am marking the answers related to the first problem of assignment and not the loading value which has to be XX not X.
$('#Time1').val('12:22');or$('#Time1')[0].value = '12:22';