Can I apply a class to a table row containing a link, rather than to the link itself?
<p>The following code adds a class to a link and removes another class from the same link:</p>

<pre><code> $('a[href$="' + myStr + '"]').removeClass('yes').addClass('no');
</code></pre>

<p>The link appears in a table. How would I apply this change in class to the ROW that the link appears within in the table, rather than to the link itself? I've been playing around with the 'parent' command however either that isn't it or I'm doing it wrong.</p>

<p>Thanks in advance for any help!</p>
