Assume I have this url:
<a href="/browse/buy/?departments=1">Phones</a>
And I want to match it via jQUery, the problem is, link is a subset of the queried test as this as I want to use the absolute path of the current page to find the fitting link (as my page may contain more additional get parameters like /browse/buy/?departments=1&order_by=title:
Yet None of them worked:
$( 'a[href*="/browse/buy/?departments=1&order_by=title"]' );
$( 'a[href^="/browse/buy/?departments=1&order_by=title"]' );
$( 'a[href$="/browse/buy/?departments=1&order_by=title"]' );
departments=1and contains with/browse/buy/? If not, can you please clearly explain the requirements that you have?