PDA

View Full Version : DateChooser - Disable select After todays date


phive_
11-19-2005, 07:34 PM
hi all, i am using a datechooser component but i want to make it so the enduser will be unable to select any dates after today (future dates)... any idea's how to go about this?

thanks for your time!

phive_
11-19-2005, 08:09 PM
after some playing around and research here is the answer:


comp.disabledRanges = [ {rangeStart: new Date(mydate.getYear, mydate.getMonth, mydate.getDay)} ];


:cool:

~ Phive_