Here is the link to my code: http://jsfiddle.net/GwUmb/4/
$(document).ready(function(){
$(".trigger,.trigger-2").click(function(){
$(".panel,.panel-2").toggle("fast");
$(this).toggleClass("active");
return false;
});
});
I've been facing an issue with loading panel-2 from trigger-2...The behavior of .trigger and .panel seems somewhat correct, but there are some strange CSS styles applied.
When I remove .panel-2 and .trigger-2, the code works perfectly fine. However, when those classes are included, it doesn't work as expected.
I was attempting to reproduce what I found in this resource: http://www.w3schools.com/jquery/sel_multiple_classes.asp.