i am completely new into developement and have stuck in this datepicker issue.
please kindly help
now i am getting previous dates also in red color instead of grey color.
i need only colours in red which will come from database
<script type="text/javascript">
if (testArray)
{
$(function () {
var disableSpecificDates = testArray;
$('#datepicker1').datepicker({
format: 'dd-m-yyyy',
startDate: Date(),
beforeShowDay: function (date) {
dmy = date.getDate() + "-" + (date.getMonth() + 1) + "-" + date.getFullYear();
if (disableSpecificDates.indexOf(dmy) != -1) {
return false;
}
else {
return true;
}
}
});
$('#datepicker1').datepicker("setDate", new Date());
});
}
</script>
<div class="form-group">
<div class='input-group date' id='datepicker1'>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
<asp:TextBox runat="server" ID="txtdatepicker" OnTextChanged="txtdatepicker_TextChanged" AutoPostBack="true" class="form-control" placeholder="Pick Appointment Date" required></asp:TextBox>
</div>