How to force a chosen jquery select to stay always openned?

Viewed 3226

I've a simple select initialized with jQuery Chosen, created on a hidden div.

$(".slcFriendlist").chosen({
    no_results_text: 'Geen resultaten voor',
    width: 300
});

When I click somewhere in my code I show it and I would like to open the select, and mantain it opened

$('.pcPhotoFriend').on('click', function(event){
    $('div.pcPostcardFriendlist').show();
    $(".slcFriendlist").trigger('chosen:open');
});

But the problem is that there is another event that trigger I guess the click outside the select, or something else, and my select get closed again -I saw it opens, tested with delay in operations- but that's not what I need.

My goal is to have a select always opened. Do you have any suggestions? Thanks in advance

1 Answers
Related