Greetings,
I'm inexperienced with javascript and could use some help. I have installed the css and js files, and inserted the relevant parts in HTML. Problems:
* The date does not end up in the form field (id timestamp).
* The widget does not hide; it is always on.
https://github.com/smalot/bootstrap-datetimepicker
I'm inexperienced with javascript and could use some help. I have installed the css and js files, and inserted the relevant parts in HTML. Problems:
* The date does not end up in the form field (id timestamp).
* The widget does not hide; it is always on.
Code:
<label for="timestamp" class="col-sm-2 control-label">Timestamp to search for</label>
<div class="col-sm-4">
<div class="input-append date" id="datetimepicker">
<input type="text" class="form-control input-append date" id="timestamp">
<span class="add-on glyphicon glyphicon-calendar"></span>
</div>
</div>
<script type="text/javascript">
$(function() {
$('#datetimepicker').datetimepicker({
format: 'yyyy-mm-dd hh:ii:ss',
pickerPosition: 'top-right',
});
});
</script>
https://github.com/smalot/bootstrap-datetimepicker