jQuery: The Write Less, Do More JavaScript Library

Changeset 4406

Show
Ignore:
Timestamp:
01/10/08 22:52:25 (4 months ago)
Author:
kbwood.au
Message:

Demonstrate relative min/max dates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/current/datepicker/index.html

    r4389 r4406  
    192192$('#restrictDates').datepicker({minDate: new Date(2005, 1 - 1, 26), 
    193193    maxDate: new Date(2007, 1 - 1, 26)}); 
     194</script> 
     195                    <p>Or set a range relative to today by specifying a number 
     196                        rather than an exact date, in this case in the coming year.</p> 
     197                    <p><span class="demoLabel">Limited dates (relative):</span> 
     198                        <input type="text" size="10" id="relativeDates"/></p> 
     199<script type="text/jsdemo" charset="utf-8" class="demojs"> 
     200$('#relativeDates').datepicker({minDate: 0, maxDate: 365}); 
    194201</script> 
    195202                    <p>Note that the range of selectable months and years changes appropriately. Also,