$('xxx').appendDtpicker({
'onHide': function(handler) {
window.alert('Picker is hidden!');
// You can handle (e.g. destroy) a picker by yourself, with using methods of handler object.
handler.destroy(); // Destroy a picker
// ...
},
'onShow': function(handler) {
window.alert('Picker is shown!');
}
});
This base idea was proposed by Kupid Wang. Thanks.
UPDATED (2013/12/31): Receive parameters was replaced to handler object.
Like below:
This base idea was proposed by Kupid Wang. Thanks.
UPDATED (2013/12/31): Receive parameters was replaced to handler object.