I want to disable the dates after the current date in my program.
I have a date picker written in JavaScript.
My JavaScript code:
Click here to view my JavaScript code.
Please help me in making necessary changes so as to disable the future date, i.e dates up to current date are only to be displayed.
Is it too late to switch to jQuery and jQuery UI? The jQuery UI Datepicker provides this functionality easily:
http://jqueryui.com/demos/datepicker/#min-max