Im using twitter bootstrap’s daterangepicker… I have a start date and an end date…
Problem here is…everytime i select a daterange…Start date can be greater than the end date(vice versa) when it comes to selection of dates… Is there a way to disable the dates during selection if this condition comes true? Thanks. BTW, datepicker validation onSelect doesn’t work in here since i’m using DateRangePicker library 🙂
$('#rangeFrom, #rangeTo').daterangepicker();
Try using Dan Grossman’s daterangepicker plugin. It has this sort of date validation right out of the box.
He has also posted a demo and several usage examples.