<div class="form-group">
<div class="col-md-4 col-md-offset-4">
<label>Start Date</label>
<script>
//$(".selector").datepicker({ beforeShowDay: $.datepicker.noWeekends })
$(".datepicker").datepicker({ beforeShowDay: $.datepicker.noWeekends })
//$(".date").datepicker("setDate", new Date());
</script>
<input type="date" class="form-control" id="startDate" />
</div>
</div>
How do I set the start date of the calendar to be today's date? I tried the commented out codes already and they don't work. Or is it possible to set the input min=datetime.today or something? Also, how do I disable weekends? I've tried searching on how to do it but the codes don't work for me.
My first time using codes with <script>
tags, are there like any things I have to add to my code? Because it seems like all the jquery (?) codes work for others but not for me so I feel like I'm missing something so it's probably not working.
And one last question. If I want to also disable public holidays, how do I do it if the public holidays are stored in a excel file?
EDIT
$(document).ready(function(){
$('#startDate').datepicker({
minDate: new Date(),
beforeShowDay: $.datepicker.noWeekends
});
})