I’m playing with http://jqueryui.com/demos/datepicker/#date-range but need to fire/trigger a error if first date is greater than the second one and also prevent form to be submitted, can any help me to get this working? I notice the parameters:
$("#to").datepicker( "option", "minDate", selectedDate );
$("#from").datepicker( "option", "maxDate", selectedDate );
But didn’t know if those did the work. Also if any knows a better tool/library let me know about it.
Cheers and thanks in advance
Here is the code: