我遇到了这个名为Air Datepicker的jquery datetimepicker,并将其用于我的项目。
我有一些问题在同一天为多选项选择多个时隙。如果有人能够指导我做出哪些改变来实现它,我将不胜感激。
HTML
<form class="form-horizontal" action="suggest.php" method="post" autocomplete="off">
<input type="hidden" name="id" value="<?php echo $id;?>"/>
<!-- Vote Date Options -->
<label class="control-label" for="vote_date">Available Dates & Time (Up to 5)</label>
<input id="vote_date" name="vote_date" type='text' class="datepicker-here form-control" data-timepicker="true" data-language="en" data-multiple-dates="5" data-multiple-dates-separator=", " placeholder="Select Dates Available for Meeting"/>
<div class="form-actions">
<button name="submit" type="submit" class="btn btn-success">Suggest</button>
</div>
</form>
的Javascript
//Set End Vote Date
var date = new Date();
date.setDate(date.getDate() + 1);
end_vote_date.selectDate(date);
$('#vote_date').datepicker({
language: 'en',
startDate: date,
minDate: date,
}).data('datepicker');