I am using jquery's slidetoggle, want to learn how to make the showup
class hide when click anywhere outside of the DIV.
thanks!
Online SAMPLE: http://jsfiddle.net/evGd6/
<div class=click>click me</div>
<div class=showup>something I want to show</div>
$(document).ready(function(){
$('.click').click(function(){
$(.showup).slideToggle(fast);
});
});
.showup {
width: 100px;
height: 100px;
background: red;
display:none;
}
.click {
cursor: pointer;
}