tags:

views:

19

answers:

2

Is it possible to disable future date from today?

let say today is 23/10/2010, so 24/10/2010 onwards are disabled.

sorry i am very new in jquery and javascript.

+2  A: 

Yes, indeed. The datepicker has the maxdate property that you can set when you initialize it. I've used it on http://blogvani.com frontpage where I set the maxdate to the current date.

Here's the codez

$("#datepicker").datepicker({ maxDate: new Date, minDate: new Date(2007, 6, 12) });
Cyril Gupta
gupta ji this work perfectly. thank you
cicakman
@cicakman Welcome. Call me Cyril or CG.
Cyril Gupta
+1  A: 
$(function() { $("#edatepicker").datepicker({  maxDate: '0'}); });
Paniyar
That's mindate you're setting. He wants maxdate.
Cyril Gupta
now updated . thanks cg
Paniyar