Skip to content Skip to sidebar Skip to footer

How To Re-open A Menu After A Select Event That Involves A Search Event?

I am using the jQuery Autocomplete widget and, after a 'unsatisfactory' (at least for me) previous question that involved hacking the plugin in order to prevent closing the menu, I

Solution 1:

i found a way to do this . use a timer to listen autocomplete close event :

var stop = false;
setInterval(function(){
    if(!$('.ui-autocomplete').is(':visible') && !stop)
    {
        $('.ui-autocomplete').css('display','block');
    }
},10);

but this is not good way to prevent closing menu !!!! you can set 'stop' to true when an event happen .

Post a Comment for "How To Re-open A Menu After A Select Event That Involves A Search Event?"