javascript - Close my datepicker after losing focus -
i created datepicker in application. when focus on input has class "datepicker", datepicker show. , when loose focus input, datepicker hide.
$('.datepicker').focus(function () { // show datepicker }).blur(function () { // hide datepicker });
anything works except, when want change month or year in datepicker, input, looses focus , datepicker hides.
what idea resolve probles? thanks.
use function..
$('.datepicker').focusout(function(){ //hide }); $('.datepicker').focusin(function(){ //show });
may help...
Comments
Post a Comment