在引导日期选择器中,我想突出显示两个日期。我可以突出显示两个日期,但无法通过颜色或某个类区分两个日期,它对两个日期应用相同的蓝色,任何人都可以帮助
<script type="text/javascript" src="Scripts/bootstrap.js"></script>
<script type="text/javascript" src ="Scripts/bootstrap-datepicker.js"></script>
<script type="text/javascript" >
$(document).ready(function () {
var DD = "29";
var MM = "04";
var YY = "2014";
var CaseDD = "25";
var CaseMM = "04";
var CaseYY = "2014";
$('#calendar').datepicker({
format: "dd/mm/yyyy",
multidate: true,
multidateSeparator: "/",
autoclose: true,
showOtherMonths: true,
dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
beforeShowDay: highlightDays()
});
$('#calendar').datepicker('setDate', new Date(YY, MM, DD), new Date(CaseYY, CaseMM, CaseDD));
});
<div class="container">
<div id="calendar" style="margin-left:-10px;border:1px solid #E1E1E1;width:203px;"> </div>
</div>
</form>
</body>