xxxxxxxxxx
Set the step attribute.
Ex: <input id="settime" type="time" step="1" />
document.getElementById("settime").value = "13:24:00";
<input id="settime" type="time" step="1" />
xxxxxxxxxx
<input type="time">
#You should always use label for all inputs for accesssibility purposes.
<label for="picker">pick a time:</label>
<input type="time" id="picker" name="picker">