开发者

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

开发者 https://www.devze.com 2023-03-10 02:33 出处:网络
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 automati

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

精彩评论

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