"testing with a selector"
Bootstrap 3.3.0 Snippet by shellwe

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="panel-heading"> <a href="#routineScreenings" data-toggle="collapse" class="ClaimsScreeningsHeading"><h2 class="panel-title"><img class="container-expanded" src="http://via.placeholder.com/18x18" /> Routine Screenings and Exams</h2></a> </div> <div class="collapse" id="routineScreenings"> <div class="checkbox"> <label><input type="checkbox" name="somethinggroup" value="1">something</label> </div> <div class="checkbox"> <label><input type="checkbox" name="somethinggroup" value="2">something</label> </div> <div class="checkbox"> <label><input type="checkbox" name="somethinggroup" value="3">something</label> </div> </div> <div class="panel-heading"> <a href="#bloodwork" data-toggle="collapse" class="ClaimsScreeningsHeading"><h2 class="panel-title"><img src="http://via.placeholder.com/18x18" /> Bloodwork</h2></a> </div> <div class="collapse" id="bloodwork"> <div class="checkbox"> <label><input type="checkbox" name="somethinggroup" value="4">something</label> </div> <div class="checkbox"> <label><input type="checkbox" name="somethinggroup" value="5">something</label> </div> <div class="checkbox"> <label><input type="checkbox" name="somethinggroup" value="6">something</label> </div> </div>
$(".ClaimsScreeningsHeading").click(function () { alert("The region I wanted was clicked"); $("this img").toggleClass("hidden"); //this part isn't working });

Related: See More


Questions / Comments: