How to get current active instance of jquery datepicker
问题 I have multiple datepicker controls on single page binded to input controls. When I click on any of the input control datepicker control linked to that input gets visible. Now I want to get input for which the current instance of datepicker is being shown on another JS events. Is it possible? 回答1: You can try using the $.datepicker._getInst(target) method to get any specific datepicker on your page. You just have to pass in a target element, which you can do so by just passing the id using