your code can’t run,the $ is missing.
$("#trigger_kontakt").click(function() {
console.log("Kontakt");
$(".contact_box").addClass("active");
$(".search_box").removeClass("active");
});
.active{
color:red;
}
div{ width:100px;height:50px;border:1px solid #000;display:inline-block;}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<a class="header_contact" id="trigger_kontakt">Kontakt</a>
<a class="header_search">Search</a>
<br>
<div class="contact_box">.contact_box</div>
<div class="search_box">.search_box</div>
4
solved Click handler not being executed [closed]