Filter (Advanced Search)
Downloads
0
Views
226
Video

Video is not available... Embedded is previous playlist.

Details

The <input type="time"> allows the user to select a time (no time zone).

Depending on browser support, a time picker can show up in the input field.


<!DOCTYPE html>
<html>
<body>

<h1>Show a Time Input Control</h1>

<p>The <strong>input type="time"</strong> allows the user to select a time (no time zone):</p>

<p>If the browser supports it, a time picker pops up when entering the input field.</p>

<form action="/php/inputTime.php" method="get">
  <label for="appt">Select a time:</label>
  <input type="time" id="tme" name="tme">
  <input type="submit" value="Submit">
</form>

<p><strong>Note:</strong> type="time" is not supported in Internet Explorer 11 or prior Safari 14.1.</p>

</body>
</html>



Ad