I am trying to set the value of my time input with javascript here is what I am doing
var div = document.createElement("DIV");
var div_id = "div_hours_" + "1";
var input_open = document.createElement("INPUT");
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
input_open.type = 'time';
input_open.name = 'time_open_input';
input_open.value = h+ ":" + m + " am";
div.appendChild(input_open);
el("body_div").appendChild(div);
But when I do this, I see the time input, but its value is empty?
Why isn't the value being input?
Thanks for the help