Check if datepicker is open

前端 未结 6 532
遥遥无期
遥遥无期 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:28

    This might be a possible bug in the past. Now this solution

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

    works perfectly

提交回复
热议问题