I'm trying to use the JQuery to find and remove a specific <li> that has <a> tag with a blank URL in the URL as below
<ul class="list">
<li>
<a href="#">1</a>
</li>
<li>
<a href="https://debug.to">2</a>
</li>
<li>
<a href="#">3</a>
</li>
<li>
<a href="https://debug.to">4</a>
</li>
</ul>
I tried the following jquery, but it did not work.
$('.ul li:href"#"').remove()
How to Find and Remove <li> which doesn't have a link in <ul> using jQuery?