so try is, add class every element, parent has specific class.
i tried this:
if ($('tr').hasclass('storno')) { $('tr > td').addclass('storno'); }
and html example:
<table> <tr class="storno"> <td>test</td> <td>test2</td> </tr> <tr> <td>test</td> <td>test2</td> </tr> </table>
i tried other code, @ point, dont know can right.
thank in advance
$('tr.storno > td').addclass('storno');
Comments
Post a Comment