jQuery ui datepicker positioning problem when scrolling down webpage

前端 未结 10 1187
野的像风
野的像风 2021-01-02 11:30

I have a webpage that uses multiple instances of the jQuery ui datepicker. My webpage will display ~80 records which extends beyond a single screenshot.

<         


        
10条回答
  •  一整个雨季
    2021-01-02 12:04

    The Datepicker-UI popup can be made draggable by adding the following code:

    $('#ui-datepicker-div').draggable();

    As this ID applies to the component div created for all popup datepickers on the page. While:

    $(".ui-datepicker").draggable()

    Applies to all datepickers on a page (whether popup or inline). By making the panel draggable, you can usually position the datepicker where you want it without scrolling.

提交回复
热议问题