Is there a way to only hide the href element in a specific UL element, rather than hiding all href elements with the same class name?
Let's consider an example HTML code:
<ul class="UL_tag">
<li>Text 1</li>
<li>Text 2</li>
<li><a href="http://www.google.com" class="description">Link to GOOGLE</a></li>
</ul>
<ul class="UL_tag">
<li>Text 1</li>
<li>Text 2</li>
<li><a href="http://www.yahoo.com" class="description">Link to Yahoo</a></li>
</ul>
The current code to hide these hrefs is:
$('a.description').hide();
If we want to hide just one href element within one UL element, how should we modify this JavaScript code?
Your assistance is greatly appreciated!