I recently implemented a jQuery menu plugin that I found on
Overall, everything is functioning correctly. However, I am encountering an issue where the active state is not displayed when selecting a sub menu. Instead, it keeps redirecting to the main page after the page loads. Refer to the screenshot for further details.
This is the code snippet I am using:
<div id="menu">
<ul class="listview-icons">
<li>
<a>
<form method="post" action="{$site_url}/tracking.html" name="trak_now_homepage" id="trak_now_homepage">
<div class="form-group texttransform">
<input type="text" class="form-control" id="shipment_track_num" name="track_num" placeholder="Enter the booking ID">
<span id="shipment_alert" class="alert" style="color:#CF0"></span>
<BR />
<input name="news_go" type="submit" value="Track now" class="com_buton" id="send" onclick="return valid_shipment_tracking_form(document.trak_now_homepage);" />
</div>
</form>
</a>
</li>
<li><a href="{$site_url}"><i class="fa fa-home"></i> HOME</a></li>
<li>
<span><i class="fa fa-file-text-o"></i> SEND</span>
<ul>
<li><a href="{$site_url}/send_document.html"><i class="fa fa-file-text-o"></i> DOCUMENTS</a></li>
</ul>
</li>
<li>
<span><i class="fa fa-plane"></i> SERVICES</span>
<ul>
<li><a href="{$site_url}/sameday.html"><i class="fa fa-map-marker"></i> SAME DAY DELIVERY</a></li>
</ul>
</li>
<li>
<span><i class="fa fa-user"></i> ABOUT US</span>
<ul>
<li><a href="{$site_url}/about_us.html"><i class="fa fa-info-circle"></i> ABOUT US</a></li>
<li><a href="{$site_url}/faq.html"><i class="fa fa-info-circle"></i> FAQ</a></li>
<li><a href="{$site_url}/how.html"><i class="fa fa-info-circle"></i> HOW IT WORKS</a></li>
<li><a href="{$site_url}/advice.html"><i class="fa fa-info-circle"></i> PACKAGING ADVICE</a></li>
<li><a href="{$site_url}/reviews.html"><i class="fa fa-info-circle"></i> REVIEWS</a></li>
<li><a href="{$site_url}/terms.html"><i class="fa fa-info-circle"></i> TERMS</a></li>
<li><a href="{$site_url}/policy.html"><i class="fa fa-info-circle"></i> POLICIES</a></li>
<li><a href="{$site_url}/volume_calculator.html"><i class="fa fa-inf...
Is there a way to resolve this issue? The live demo can be accessed at www.matchcouriers.com