Force jQuery UI Datepicker to display below input field

后端 未结 4 1048
北恋
北恋 2021-02-15 23:15

I have a page which contains a form and few fields. My issues are as follow:

  1. I am trying to force jQuery UI datepicker to display below the input field.
4条回答
  •  暖寄归人
    2021-02-15 23:51

    Following line of code from jquery-ui-(version) sets your object top position to be zero so it is displayed wrong.Comment the line of code you will get what you want. I spend lots of days found no better solution than this.

    offset = $.datepicker._checkOffset( inst, offset, isFixed );

提交回复
热议问题