I\'m trying to have a select
box automatically pop open when the use hovers over it, as if they had clicked it. Is this possible?
I would think I could
Unfortunately the method with Chosen - did not work for me.
But I thought I could make my own selector on jQuery.
HTML:
Select option
option long value
option 2
option 3
JS:
$('.hidden p').click(function(){
$(this).closest('.select').find('.input').text($(this).text());
$(this).closest('.select').find('input').val($(this).attr('value'));
$(this).closest('.select').trigger("change");
});
$('.select').change(function(){
// ... do stuff
});
https://codepen.io/qwer643/pen/LebKpo