I have this html-table:
<table id=mytable> <tr> <td> Mark </td> <td> Susan </td> </tr> </table> Somewhere from javascript an event occur and I can will be able to fetch the name, which is one of those in the table. From javascript/jquery I need to find the td-element containing the name and color it. I tried with:
$("#mytable").find("td:contains('Mark')").parent().css('background-color', 'red'); But the td-element doesnt get colored.