I've got a table which displays datetime like this:
<td id="start-1" value ="2017-03-15T00:00">2017-03-20 20:00:00</td>
When user wants to edit row, a modal window
will be opened with filled data. But the value of time is not passed to modal window
(datetime-local is shown blank).
However if the string "2017-03-15T00:00" is passed directly to inside script as below:
document.getElementById("start-e").value = "2017-03-15T00:00";
, it does show it, but the code below does not work:
document.getElementById("start-e").value = document.getElementById("start-1").value;