Below is the HTML code:
<td>
<a class="link" href="#">
<span class="download">Link</span>
</a>
<a class="link" href="#">
<span class="csvdownload">Link 2</span>
</a>
</td>
I am looking to apply the following CSS:
a.link {
display: none;
}
This CSS should only be applied to the <a>
element that contains the csvdownload
class in the span.
It would be great if this could be achieved using pure JavaScript without relying on a plugin like jQuery...