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
It's been a while but there is a solution I don't see here, using hover
to change the length of select
:
$('select').hover(function() {
$(this).attr('size', $('option').length);
}, function() {
$(this).attr('size', 1);
});
http://codepen.io/anon/pen/avdavQ
And here's a pen where it's a bit more than the bare necessity and has some styling :
Demo