Check if datepicker is open

前端 未结 6 680
遥遥无期
遥遥无期 2021-01-01 13:19

I have a field with a datepicker. I want know if it is open. I\'ve tried with:

$(\"#filter_date\").datepicker( \"widget\" ).is(\":visible\")
<
6条回答
  •  太阳男子
    2021-01-01 13:51

    Simply set:

    #ui-datepicker-div { display: none; }
    

    in your CSS file and your code:

    $("#filter_date").datepicker( "widget" ).is(":visible")
    

    will work correctly!

提交回复
热议问题