jQuery UI Datepicker Range

前端 未结 4 1687
半阙折子戏
半阙折子戏 2021-01-14 10:47

I asked a pretty similar question a few days ago, but this one is different enough that I didn\'t feel like derailing the other helpful topic. I basically want to set up two

4条回答
  •  既然无缘
    2021-01-14 11:32

    onSelect: function(dateText, inst) {
      try {
        var date = $.datepicker.parseDate("dd/mm/yy", dateText);
          if (date) {
            date.setDate(date.getDate() + 1);
            $("#secondDatePicker").datepicker("setDate", date);
          }
        }
        catch(e) {}
    }
    

提交回复
热议问题