jQuery ui datepicker positioning problem when scrolling down webpage

前端 未结 10 1276
野的像风
野的像风 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 11:58

    I'm not sure if this would be the problem, but you're attaching the datepicker in a non-standard way. You don't need to iterate with .each();

    $("input.date-pick").datepicker({
        dateFormat: 'dd M yy',
        showOn: 'button',
        buttonImage: '/Images/datepickericon.png',
        buttonImageOnly: true
    });
    

    Also, you should always put a tag name in front of a class selector whenever possible, as it speeds up the selection process.

提交回复
热议问题