Need to put local time in input field

itsmeqx

New Member
hi i have this code, and i need to put the local time and refresh in the value of my input please help\[code\]<input id="HFS_time" class="bg" type="text" name="REQ0JourneyTime" size="14" maxlength="5" title=""/><script type="text/javascript"><!-- var currentTime = new Date() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() if (minutes < 10) minutes = "0" + minutesdocument.write(hours + ":" + minutes + " ")//--></script> \[/code\]
 
Back
Top