This question already has an answer here:
- jQuery DatePicker with today as maxDate 4 answers
The questions is in the Title. I have two datepickers, from and to. I want to limit the from datepicker to the current date. How do I do that? Thanks in advance!
Use the maxDate options : http://jqueryui.com/demos/datepicker/#option-maxDate
For example :
$( ".selector" ).datepicker( "option", "maxDate", new Date() );