30
rated 0 times
[
32]
[
2]
/ answers: 1 / hits: 16553
/ 9 Years ago, fri, january 22, 2016, 12:00:00
HTML
<div id=selectPeriodRangePanel>
<p>Test</p>
</div>
<button id=period_select_range_btn>Select Range</button>
JQUERY
$(#period_select_range_btn).off().on(click, function(){
$(#selectPeriodRangePanel).toggle();
});
When i click on button, the selectPeriodRangePanel DIV
is opened. I would like to hide this DIV
when i click outside of it.
How can i do that ?
More From » jquery