So, I have the following HTML:
<div class="toolsIndexSelectContainer">
<select id="Clients" class="toolsIndexSelect disableElement">
<option>Item</option>
<option>Item 2</option>
<option>Item 3</option>
</select>
</div>
When I click on the surrounding div with class toolsIndexSelectContainer, I would like the select to dropdown and show the items inside. I have this jQuery:
$("div[class~='toolsIndexSelectContainer']").click(function () {
$(this).children("select").focus();
});
But, focus() does not work. I tried click() and Chrome just blows up on me. Is there a way to do this?