The following code adds a class to a link and removes another class from the same link:
$('a[href$="' + myStr + '"]').removeClass('yes').addClass('no');
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.
Thanks in advance for any help!
1 Answer