Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>Use select() to select the content of a Time Field</h2>
Time: <input type="time" id="myTime" value="22:15:00">
<p>Click the button to select the content of the time field.</p>
<button type="button" onclick="myFunction()">Try it</button>
<script>
function myFunction() {
  document.getElementById("myTime").select();
}
</script>
</body>
</html>