Jquery - Select the <li> around <a href="specific-url">

jquery, jquery-selectors, selector

Solution

As simple as:

$('a[href="specific-url"]').parent('li');

Problem

This should be simple: ``` <li> <a href=""></a> </li> <li> <a href="specific-url"></a> </li> ``` I want to select that `<li>` based on the `<a>` tag's attribute with specific url in the href. (Do not use `last-child`) How can I?

Original source