开发者

Hello...I have a small problem with the JQuery Date Picker Range

I have two date pickers..The first is the "From or Starting Date" and the second is the " TO or Ending Date". What i need to do is to be able to add one year to the Starting date and then automatically 开发者_如何转开发display that value in the Ending Date. I am quite new to Jquery and need help with it. Thanks a million in advance..


$('#FROMpicker').datepicker({
   onSelect: function(dateText, inst) {
     $('#TOpicker').datepicker("setDate", $(this).datepicker("getDate"))
                   .datepicker("setDate", "+1y");
   }
});

At the bottom of this page see the "Events" and "Methods" tabs for explanations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜