时间选择 弹出时间 小时和分钟选择
XML/HTML Code
- <div class="form-group">
- <h4>Default: </h4>
- <div class="input-group clockpicker">
- <input type="text" class="form-control" value="09:30">
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-time"></span>
- </span>
- </div>
- </div>
- <div class="form-group">
- <h4>Place at left, align the arrow to top, auto close:</h4>
- <div class="clearfix">
- <div class="input-group clockpicker pull-center" data-placement="left" data-align="top" data-autoclose="true">
- <input type="text" class="form-control" value="13:14">
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-time"></span>
- </span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <h4>Set options in javascript, instead of <code>data-*</code> :</h4>
- <div class="input-group clockpicker" data-placement="top" data-align="left" data-donetext="Done">
- <input type="text" class="form-control" value="18:00">
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-time"></span>
- </span>
- </div>
- </div>
- <div class="form-group">
- <h4>Set default value, input without addon, and manual operations:</h4>
- <div class="clearfix">
- <div class="pull-center clearfix" style="margin-bottom:10px;">
- <button type="button" class="btn btn-default pull-right" id="check-minutes">Check the minutes</button>
- <input class="form-control pull-right" id="single-input" value="" placeholder="Now" style="width:80px;margin-right:20px;">
- </div>
- </div>
- </div>
- </div>
原文地址:http://www.freejs.net/article_jquerywenzi_344.html