Created
September 10, 2015 10:46
-
-
Save koentjuh1/4e1107bc9401b58b2043 to your computer and use it in GitHub Desktop.
Parrent add class to parrent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="side-box"> | |
<h4 class="side-title">Schermdiogonaal <i class="fa fa-angle-down"></i></h4> | |
<ul class="side-list"> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
</ul> | |
</div> | |
<div class="side-box"> | |
<h4 class="side-title">Processor <i class="fa fa-angle-down"></i></h4> | |
<ul class="side-list"> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
</ul> | |
</div> | |
<div class="side-box"> | |
<h4 class="side-title">Merk <i class="fa fa-angle-down"></i></h4> | |
<ul class="side-list"> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
<li><label><input type="checkbox"><span> Check me out</span></label></li> | |
</ul> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.side-box .side-title').on({ | |
click: function (){ | |
$(this).parent().toggleClass('open'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment