<div class="toggle-wrap">
<div id="box-1" class="box active">Click me</div>
<div id="box-2" class="box">Click me again</div>
</div>
(function ($) {
$(function () {
$(".toggle-wrap").click(function () {
$(this).find(".box").toggleClass("active");
});
});
})(jQuery);