hey guys, i have a rather (for me) complicated task with jquery.
i want to scan an entire table for its th elements. if a th element has a ATERISK (*) in it, i want to hightlight the the parent, which is the tr element.
i know it sounds complicated when i explain it :)
so imagine i have a dynamic html table where i want to enable a feature to higlight certain rows. therefore i just want to put some symbol (in my case an Aterisk *) to some text inside of a table cell. if jquery detects a aterisk inside of th it should automtically give its parent() a classname!
a start would be probably an each function:
$(function() {
$("table tr th").each(function() {
$(this).parent().addClass("special");
});
});
but i have no idea how to scan for the aterisk!?
thank you for your help!