clockpicker-demo
HTML
<script src="http://weareoutman.github.io/clockpicker/dist/jquery-clockpicker.min.js"></script>
<link rel="stylesheet" href="http://weareoutman.github.io/clockpicker/dist/jquery-clockpicker.min.css">
<div class="container">
<input class="myinput" value="" data-default="20:48">
<input class="myinput" value="" data-default="20:48">
<input class="myinput" value="" data-default="20:48">
</div>
CSS
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
}
.container {
padding: 20px;
}
JavaScript
var input = $('#input-a');
var value = input.val();
// bind multiple inputs
$('.myinput').clockpicker({
autoclose: true,
afterDone: function() {
}
});
// in the actual code it's not tied to an id but to a non-unique class
// does not trigger if changed by clock-picker
$(document.body).on('change', '.myinput', function(){
console.log("!!!!")
})