control

## control time :

The time type allows the user to select a time (no time zone). Depending on browser support, a time picker can show up in the input field.

syntax | <input type="time" name="name" >

example :

Example
<input type="time" id="inputTime" > : type your time <br /> <input type="button" id="btn1" value="set time" onclick="changeTime()" /> <br /> <div id="MyDiv"> </div> <script type="text/javascript"> function changeTime() { document.getElementById("MyDiv").innerHTML = "Time is : " + document.getElementById("inputTime").value; } </script>
output : type your time

Copyright 2014. All rights reserved.
instagram