views:

63

answers:

3

hi all,

i couldn't figure out on how to do this (using minDate): by default i want my datepicker only allowing to pick dates >= today.

how would this work?

thx

+1  A: 

See the documentation on the minDate option

emeraldjava
+7  A: 

Use the minDate:0 option in the call to datepicker.

This will only allow you to select a date in the next 30 days:

jQuery("#date_field").datepicker({
  minDate: 0,
  maxDate: 30
});
duckyflip
A: 

I got this from here..

Try

$('.selector').datepicker('option', 'minDate', new Date());
Ryan