jQuery Hide Div(s) on focus of drop down menu or text (live search) input
Posted
by
webwrks
on Stack Overflow
See other posts from Stack Overflow
or by webwrks
Published on 2011-03-06T01:14:33Z
Indexed on
2011/03/12
8:10 UTC
Read the original article
Hit count: 175
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>
© Stack Overflow or respective owner