The current list element is :
<li class="nav__item"><a class="nav__link nav__link--active " href="#"...
The standard list element is:
<li class="nav__item"><a class="nav__link " href="#"...
I want the element to be active when selected and normal when not selected.
Here is the provided code snippet:
<div class="nav-section">
<div class="nav-section__header">
<h2 class="nav-section__title"> Heading </h2>
</div>
<ul class="nav">
<li class="nav__item ">
<a class="nav__link nav__link--active" href="../home/main1.php">
<span class="channel-link__icon">
<span class="channel-link__element">Title1</span>
</a>
</li>
<li class="nav__item ">
<a class="nav__link nav__link--active" href="../home/main2.php">
<span class="channel-link__icon"></span>
<span class="channel-link__element">Title2</span>
</a>
</li>
</ul>