Which javascript files have you included? And have you verified (perhaps using Firebug) that the paths are valid and they are being loaded? Also, the order is significant. They should be loaded in this order
jquery.js ui.core.js ui.datepicker.js - Richard On Thu, Jan 15, 2009 at 4:24 AM, divsystem <divsys...@gmail.com> wrote: > > $('.Datepicker1').datepicker({beforeShow: customRange, > rangeSelect: true, numberOfMonths: 2}); > > function customRange(input) { > return { > minDate: (input.id == "startDatepicker" ? $ > ("#endDatepicker").datepick("getDate") : null), > maxDate: (input.id == "endDatepicker" ? $ > ("#startDatepicker").datepick("getDate") : null) > }; > } > > > > <p>startDate: <input type="text" id="startDatepicker" class = > "Datepicker1"></p> > <p>endDate: <input type="text" id="endDatepicker" class = > "Datepicker1"></p> >