views:

14

answers:

1

hi i have a field with a datapicker.

i want know if it is open. i've tried with:

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

but it returns always true.

how can i do?

thanks

A: 

Off the top of my head, I could think of using the beforeShow and onClose events defined for the datepicker control to toggle a class (or a flag) somewhere, and checking the presence of which to determine whether the datepicker control is open or not.

ayaz