umair96 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

How to add validation between from date & to date for report #278

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
for from date i want disabled all dates after todays date.

when i select from date then in the to date disabled the all dates before the 
from date

eg.
if from date is 03/05/2011 then in the 
   to date all dates disbled before 03/05/2011  

Original issue reported on code.google.com by sujitpat...@gmail.com on 5 May 2011 at 6:50

GoogleCodeExporter commented 8 years ago
my code is below

$(function()
            {
            var dtm = new Date();
            $('.date-pick1').datePicker(
                {
                startDate: '01-01-1996',
                endDate: (dtm).asString()
                }
             );
             $('.date-pick2').datePicker(
                {
                startDate: '01-01-1996',
                endDate: (dtm).asString()
                }
             );
        });

Original comment by sujitpat...@gmail.com on 6 May 2011 at 4:03

GoogleCodeExporter commented 8 years ago
There is an example showing how to create start/ end date pickers that are 
connected together:

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.ht
ml

Original comment by kelvin.l...@gmail.com on 6 May 2011 at 8:03