jquery - How to hide a table row that has no unique id -
how hide table row has no unique id, row contains td specific text, note cannot adjust classnames or add id's there either. nested tr.
eg.
<tbody><tr> <table id="baskettable"><tbody> <tr class="separaterow "> <td class="separatecolumn" colspan="2"> not hide row</td> <td class="separatecolumn"></td> <td class="separatecolumn"></td> <td class="money">100,39 </td> <td></td> </tr> <tr class="separaterow "> <td class="separatecolumn" colspan="2"> yes hide row</td> <td class="separatecolumn"></td> <td class="separatecolumn"></td> <td class="money">100,39 </td> <td></td> </tr>
$("tr.separaterow:contains('something find')").hide();
working example --> http://jsfiddle.net/ukjxh/1/
Comments
Post a Comment