Override jQuery UI Datepicker div visible strangely on first page load.

前端 未结 7 1440
时光取名叫无心
时光取名叫无心 2020-12-16 10:02

Something strange afoot, here:

An instance of Datepicker is showing up in a weird place as a single bar in the upper left hand corner of this page.

I\'m usin

7条回答
  •  醉梦人生
    2020-12-16 10:26

    In my case, I use the session "$(document).ready(function(){" of JQuery in my favor.

    As I have a JavaScript file that is loaded in all pages of my system, I just added the following line on it.

    $('#ui-datepicker-div').css('display', 'none');
    

    For me, it appears a clear and elegant solution because I did not have to change its library.

    Best of all, it is working fine on all browsers. :)

提交回复
热议问题