Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8983481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:51:05+00:00 2026-06-15T20:51:05+00:00

Being relatively new with jQuery I hope someone could point me in the right

  • 0

Being relatively new with jQuery I hope someone could point me in the right direction on how to best remove a certain table row.

Source:

<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>

This being the bit I’d like to remove:

<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>

I’ve tried using these next lines of code, which leaves me with an empty tr

jQuery(document).ready(function(a) {
    a("tr td.b-tags").remove();
    a("tr td.tags").remove();
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:51:06+00:00Added an answer on June 15, 2026 at 8:51 pm

    You can use eq based on the row index you want to remove.
    Note that the index is zero-based.
    So eq(3) removes the fourth.

    $('table tr:eq(3)').remove();
    

    Or based on child td class.

    $('.b-tags').parent().remove();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Being relatively new to javascript, AJAX and jQuery, I want to post 3 values
I'm relatively new to JQuery/JS so if you could please make your answers idiot
Being relatively new to programming--think Programming in Objective-C by Kochan, Chapter 15--I'm wondering if
Simple question really, I am relatively new to both jQuery and XML. I just
I've probably overcomplicated things, but being relatively new to the whole process, I didn't
I am relatively new to jQuery, and I would like to be able to
I am relatively new to using jQuery and would like to use the load
Being relatively new to mongo, I read in the mongo manual about Optimizing Object
I am relatively new in Java technologies. I want to know the best frameworks
I'm relatively new to Java, so I hope this isn't a dumb question. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.