jQuery Hide Div(s) on focus of drop down menu or text (live search) input
- by webwrks
Can anyone help me? I'm trying to hide the #hideme div when the a user clicks the drop down menu (to select something) or puts the focus on the text field. Thanks!
#hideme {
background:#ccc;
}
<script>
$(function(){
$('#skill_select').click(function(){
$('#hideme').hide();
});
}):
</script>
<select>
<option selected="selected">Pick from the list</option>
<option>Option One</option>
<option>Option Two</option>
</select>
or <input type="text" value="type something">
<br/><br/>
<div id="hideme">Hide Me Please</div>