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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -