Having trouble with selectors/transversing. Basically, I want the popup div to open when the user hits the select. I need to use this structure due to the larger program being used, so I’m only looking for the proper selector.
HTML
<div class="box">
<div class="popup"></div>
<select></select>
</div>
jQuery
$('div.box select').focus(function (){
$(this).closest('div').next().css('display','block');
});
Select its parent then find the popup: