I have a navigation and when you click on a certain link, it takes you to a different webpage. here is my code:
<ul class="nav-list">
<li class="mobile-homepage"><a (click)="selectPage('homepage')">{{'NAVIGATION_HOMEPAGE'|translate}}</a></li>
<li><a (click)="selectPage('solutions')" class="main-links separate">{{'NAVIGATION_SOLUTIONS'|translate}}</a>
<ul class="nav-dropdown set-width">
<li><a (click)="selectPage('solutions', 'collect')" >{{'NAVIGATION_CLICK_COLLECT'|translate}}</a></li>
<li><a (click)="selectPage('solutions', 'returns')">{{'NAVIGATION_STORE_RETURNS'|translate}}</a></li>
<li><a (click)="selectPage('solutions', 'aisle')" >{{'NAVIGATION_ENDLESS_AISLE'|translate}}</a></li>
<li><a (click)="selectPage('solutions', 'store')" >{{'NAVIGATION_STORE_FULFILMENT'|translate}}</a></li>
<li><a (click)="selectPage('solutions', 'customer')" >{{'NAVIGATION_CUSTOMER_CARE'|translate}}</a></li>
<li><a (click)="selectPage('solutions', 'partner')" >{{'NAVIGATION_PARTNER_FULFILMENT'|translate}}</a></li>
</ul>
</li>
</ul>
You can see the click event on the second li, (click)="selectPage('solutions')
My issue is, I want to disable that link while on mobile. It opens to a drop down menu as well so I don't want to completely disable it, I just want it so that on mobile, when you click that link, only the dropdown menu opens and it doesn't take you to a new page like on desktop.
Does anyone know how I could do this using jQuery?