help fixing the code for datepicker.
Have these two scripts, that work independently but not both in the same time.Please
any help how to fix these or replace both.
The idea is to disable sundays and the present date with the next two days date.
thanks
three day not selectable
<script type="text/javascript"> $("document").ready(function () { if (!Modernizr.input.placeholder) { makePlaceholders(); } if (!Modernizr.inputtypes.date) { var $dates = $("input[type=date]"); $dates.each(function () { var thisDate = $(this); thisDate.datepicker({ minDate: 3, maxDate: thisDate.attr("max"), dateFormat: "mm-dd-yy" }); }); } }); </script>
sundays not selectable
<script> $(document).ready(function() { $('#appointDate').datepicker({ beforeShowDay: noSunday }); function noSunday(date){ var day = date.getDay(); return [(day > 0), '']; }; }); </script>