On my website, I have two main pages: the home page and the contact us page. The contact us page features 4 menu options, with the first option currently active. I would like to set it up so that when a user clicks on the home page button, it will navigate them to the contact us page and automatically make the second menu option active.
This is the code for the home page button:
<div class="buttons">
<a class="btn btn-danger" href="javascript:void(0)" data-toggle="modal" data-target="#exampleModalLong">Book A Service</a>
</div>
And here is the code for the contact us menu:
<div class="nav flex-column nav-pills nav-pills-custom" id="v-pills-tab" role="tablist" aria-orientation="vertical">
<a class="nav-link mb-2 p-3 shadow active" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="true" data-kmt="1">
<i class="fa fa-calendar-minus-o mr-2"></i>
<span class="text-uppercase">Book a Service</span></a>
<a class="nav-link mb-2 p-3 shadow" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="false" data-kmt="1">
<i class="fa fa-car" aria-hidden="true"></i>
<span class=" text-uppercase">Guest Book</span></a>
<a class="nav-link mb-2 p-3 shadow" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false" data-kmt="1">
<i class="fa fa-question" aria-hidden="true"></i>
<span class="text-uppercase">Buy a Car</span></a>
<a class="nav-link mb-2 p-3 shadow" id="v-pills-settings-tab" data-toggle="pill" href="#v-pills-settings" role="tab" aria-controls="v-pills-settings" aria-selected="false" data-kmt="1">
<i class="fa fa-check mr-2"></i>
<span class="text-uppercase">Exchange your Car</span></a>
</div>