I have the following HTML:
<div class="selectOptions">
<select name="select" id="select">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
and the following jQuery code:
$(".selectOptions").on("mouseover", function () {
$(".selectOptions select").trigger('click');
});
My goal is to pass the mouseover
mouse over the div
, open select
.
Is there a way to do this? As? The way I'm doing is not working.