Within the Master page layout, I have the following structure....
<ul id="productList">
<li id="product_a" class="active">
<a href="">Product A</a>
</li>
<li id="product_b">
<a href="">Product B</a>
</li>
<li id="product_c">
<a href="">Product C</a>
</li>
</ul>
The goal is to dynamically change the 'active' class based on user selection. For instance, clicking on 'Product A' should assign it the 'active' class while removing this class from other elements. A similar process should follow when selecting 'Product B'. I attempted implementing this functionality in the Home Controller but encountered challenges referencing the page or its elements.