I'm working on date picker based on Twitter Bootstrap which using a datepicker from https://github.com/eternicode/bootstrap-datepicker .
I wanted to extend do something like which allow users to select 2 dates and update the later calendar when on change
- select departure date
- return date: disabled selection of dates all before departure date so that return date always stays in front of the departure date.
currently using the following, but it only work once...
$("#depart_date").datepicker(dp) .on('changeDate',function(ev){ $("#return_date").datepicker({ format:defaultDateFormat, autoclose:true, startDate: $("#depart_date").val() }); });
how am i able to achieve this?