1 2 3 4 5
| <div class="input-group date"> --> <input type="text" size="16" value="" readonly class="form-control"> <span class="add-on"><i class="icon-th"></i></span> </div>
|
1 2 3
| $('.form_datetime').datetimepicker({ format: 'yyyy-mm-dd hh:ii' });
|
解决办法一:
http://eonasdan.github.io/bootstrap-datetimepicker/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| <h3>Default component</h3> <div class="container"> <div class="row"> <div class='col-sm-6'> <div class="form-group"> <div class='input-group date' id='datetimepicker1'> <input type='text' class="form-control"/> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> </div> </div> </div> </div> </div>
|
1 2 3
| $(function() { $('#datetimepicker1').datetimepicker(); });
|