Your .on is missing quotes around `changeDate`.
This should do what you're looking for:
http://jsfiddle.net/ZQ5pu/1/
<div class="input-daterange">
<input id="datetimepicker1" />
<span class="add-on">to</span>
<input id="datetimepicker2" />
</div>
$('#datetimepicker1').datepicker({
todayBtn: "linked",
keyboardNavigation: false,
todayHighlight: true
});
$('#datetimepicker2').datepicker({
todayBtn: "linked",
keyboardNavigation: false,
todayHighlight: true
});
$('#datetimepicker1')
.on('changeDate', function(e){
$('#datetimepicker2').datepicker('setStartDate', e.date);
});
$('#datetimepicker2')
.on('changeDate', function(e){
$('#datetimepicker1').datepicker('setEndDate', e.date);
});
> --
> You received this message because you are subscribed to the Google Groups "bootstrap-datepicker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
bootstrap-datepi...@googlegroups.com.
> To post to this group, send email to
bootstrap-...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/bootstrap-datepicker/64d19c85-f6b3-488b-bf44-dd17386ac030%40googlegroups.com.