Hi Prashant , My option is like ,
single journey and return journey , I simply what i did know, for the field is common for single and return journey, but when the single is selected, on that time i disabled the return date,when i selec the return journey on that time am enabled the return date, My problem is , assume if the user going for return type journey , then they select the from date and return date, If they don't interest for return journey , then they simply click the one way and then select date .. Here is the problem ,, This is link plz check it out ... http://qa.ukatn.com/ the prob is . USer cant select the date if they first go to return type process.... Thanks ,,, On Sun, Jun 28, 2009 at 9:13 PM, Prashant Khanal <prashantkha...@gmail.com>wrote: > hmm....have a look at the code below and its the one provided in that > example: > > $(function() > { > $('.date-pick').datePicker() > $('#start-date').bind( > 'dpClosed', > > > function(e, selectedDates) > { > var d = selectedDates[0]; > if (d) { > d = new Date(d); > $('#end-date').dpSetStartDate(.asString()); > } > } > ); > $('#end-date').bind( > > > 'dpClosed', > function(e, selectedDates) > { > var d = selectedDates[0]; > if (d) { > d = new Date(d); > > $('#start-date').dpSetEndDate(d.addDays(-1).asString()); > } > } > > > ); > }); > > replace *d.addDays(1) and d.addDays(-1) *with just *d*. This will allow > you to set same day as start date and end date if this is what you wanted. > > On Sun, Jun 28, 2009 at 4:19 PM, bharani kumar < > bharanikumariyer...@gmail.com> wrote: > >> hi , >> y tried but cant changes its functionality , >> >> Thanks >> >> On Sun, Jun 28, 2009 at 11:19 AM, Prashant Khanal < >> prashantkha...@gmail.com> wrote: >> >>> you mean to say the problem is that you are not allowed to select the >>> same day as the end date. That can be changed. If you check the source code >>> provided and play a little with that code. >>> >>> >>> >>> >>> On Sun, Jun 28, 2009 at 11:25 AM, bharani kumar < >>> bharanikumariyer...@gmail.com> wrote: >>> >>>> The plugin is fine , but u see ,some time my customer the journey may be >>>> one day,but its not possible in that plugin ,,,, >>>> >>>> thanks >>>> >>>> >>>> On Sun, Jun 28, 2009 at 9:01 AM, Prashant Khanal < >>>> prashantkha...@gmail.com> wrote: >>>> >>>>> check this out >>>>> this might help you >>>>> >>>>> http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html >>>>> >>>>> >>>>> On Sat, Jun 27, 2009 at 8:17 PM, bharani kumar < >>>>> bharanikumariyer...@gmail.com> wrote: >>>>> >>>>>> >>>>>> >>>>>> Hi >>>>>> >>>>>> Tell the name of the plugin for >>>>>> datePickers with start and end dates >>>>>> Thanks >>>>>> >>>>>> B.S.Bharanikumar >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards >>>> B.S.Bharanikumar >>>> http://php-mysql-jquery.blogspot.com/ >>>> >>> >>> >> >> >> -- >> Regards >> B.S.Bharanikumar >> http://php-mysql-jquery.blogspot.com/ >> > > -- Regards B.S.Bharanikumar http://php-mysql-jquery.blogspot.com/