You can get the current instance with: $.datepicker._curInst
This gives you access to all of its parameters and everything
associated with the instance of datepicker. From this, you can tell
what the id is and all of its properties.
Also, to quickly check if a datepicker is showing, you can use the
_datepickerShowing property. Then attached to the current instance is
the datepickerDiv, we can then hide it.
if ($.datepicker._datepickerShowing) {
$.datepicker._curInst._datepickerDiv.hide();
}
A little complex, but certainly not a documented and public feature.
I hope that helps!
----
Marc Grabanski (
http://marcgrabanski.com)