I've the following mark-up. I want to match the anchor tag based on the part of the URL.
Actually I've markup as below. And i know the sorting field name. I want to select the anchor based on the field name eg. sort:resource_locator based on this I want to select the first anchor tag and I want to give the class as per the direction such that it will add an small up/down arrow to it.
<th><a href="/sme_leads/index/page:1/sort:resource_locator/direction:asc">Resource Locator</a></th>
<th><a href="/sme_leads/index/page:1/sort:business_name/direction:asc">Business Name</a></th>
I want to know how can I select the anchor tag based on the sort:resource_locator information.
I know $ and ^ for end and start respectively.