<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<style>
.timepicker{
background: none;
border: none;
font-size: 16px;
}
</style>
<div class="container">
<div class="row">
<div class="col s12 m3"></div>
<div class="col s12 m6">
<form>
<div class="input-field">
<input type="button" class="timepicker" value="06:00">
<!-- <label for="time">Set Time</label> -->
</div>
</form>
</div>
<div class="col s12 m3"></div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.timepicker');
console.log(elems.value)
var instances = M.Timepicker.init(elems,{
// showClearBtn:true
twelveHour:false
});
});
</script>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
</body>
</html>