Take the 2-minute tour ×

What will be javascript code for datepicker that allow user to select current and last three days only in datepicker. I have made datepicker using bootstarp ?

share|improve this question
why java tage here –  JqueryLearner Oct 10 '13 at 10:58
add comment

1 Answer

Try this

 $(function() {
    $( "#datepicker" ).datepicker({ minDate: -3, maxDate: "0" });


DatePicker Reference

share|improve this answer
add comment

Your Answer


