Change option dynamically in JQuery UI DatePicker fails

前端 未结 3 961
Happy的楠姐
Happy的楠姐 2020-12-11 02:12

I want to make date range selection using jquery-ui datepicker. First change at #dteStart succeed to set minDate at #dteEnd. But #dteEnd failed to refresh its options on ne

3条回答
  •  清歌不尽
    2020-12-11 02:44

    If you just want to change the already configured options, you can also do:

    $("#dteEnd").datepicker("option", DateOptions);
    

    or

    $("#dteEnd").datepicker("option", { dateFormat: "mm/dd/yyyy" });
    

提交回复
热议问题