Looking for a quick solution. I want the option drop down to close when another div element is hovered over.
First, open the drop down and hover over the red element on the right side. When hovering over the red element, I would like the drop down to close.
Thank you in advance.
select {
width: 200px;
display: inline-block;
}
div {
width: 50px;
height: 50px;
background: red;
display: inline-block;
}
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<div></div>