How do I hide an element in jQuery based on it's child's contents?

Posted on 2014-08-25
Last Modified: 2014-08-25

I have the following code that repeats on my site:
<tr class="alt">

Open in new window

This is autogenerated and is a row in a long table so I can't specify any id or class values to the <tr> or the <th>.
But the string <th>Aggregato</th> repeats in every instance.

I'd like to eliminate the entire <TR> whose first child <TH> contains the string "Aggregato"
How do I do this?

thanks in advance
Question by:badwolfff

    Accepted Solution

    I managed myself.


    Open in new window


    Author Closing Comment

    I managed by myself

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
    Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now