jQueryは比較的新しいので、特定のテーブル行を削除するのに最適な方法について、誰かが私を正しい方向に向けてくれることを願っています。
ソース:
<table>
<tr class="first">
<td class="first b b-posts"><a href='edit.php'>1</a></td>
<td class="t posts"><a href='edit.php'>Bericht</a></td>
</tr>
<tr>
<td class="first b b_pages"><a href='edit.php?post_type=page'>0</a></td>
<td class="t pages"><a href='edit.php?post_type=page'>Pagina's</a></td>
</tr>
<tr>
<td class="first b b-cats"><a href='edit-tags.php?taxonomy=category'>1</a></td>
<td class="t cats"><a href='edit-tags.php?taxonomy=category'>Categorie</a></td>
</tr>
<tr>
<td class="first b b-tags"><a href='edit-tags.php'>0</a></td>
<td class="t tags"><a href='edit-tags.php'>Trefwoorden</a></td>
</tr>
</table>
これは私が削除したいビットです:
<tr>
<td class="first b b-tags"><a href='edit-tags.php'>0</a></td>
<td class="t tags"><a href='edit-tags.php'>Trefwoorden</a></td>
</tr>
これらの次のコード行を使用してみましたが、空のままになりますtr
jQuery(document).ready(function(a) {
a("tr td.b-tags").remove();
a("tr td.tags").remove();
});