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

  • Home
  • SEARCH
  • 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 6546615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:43:45+00:00 2026-05-25T11:43:45+00:00

Have a 2 columned table, where each column consists of another table with some

  • 0

Have a 2 columned table, where each column consists of another table with some data, what I am trying to do is to hide the entire row if both of the columns are empty.. can anybody share some inputs on it..

http://jsfiddle.net/m38uL/

Thanks in advance

  • 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-05-25T11:43:46+00:00Added an answer on May 25, 2026 at 11:43 am

    What you had already was close to working, but you had an error in your if statement:

    if ($(this).find('.firstTab').text() == '' && (this).find('.secondTab').text() == '')
    

    Notice the missing $ in the second condition. It also would fail if there was white space in the .firstTab and .secondTab elements. Personally, I would write the code slightly differently, using the filter method, and .trim to remove any white space at the start or end of the content:

    $(".parentRow > td").filter(function() {
           return $.trim($(this).find(".firstTab").text) == "" && $.trim($(this).find(".secondTab").text()) == "";
    }).remove();
    

    Here’s a live example of the above code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have TWO tables 1) column 2) row COLUMN TABLE COLumnID ---------------- 1 2
I have this table where columns correspond to names: i.e. 11 = first, 12
I have some computed-columns of two types: Computed columns based on columns in current
I've just imported a bunch of data to a MySQL table and I have
I have a table with three columns: ColumnA ColumnB ColumnC AAA NULL 123 BBB
I am trying to read in some data that is is a text file
I have data in the SQL 2005 table as below. Table Name: FilterData CategoryID
I have this ASP code: <ext:GridPanel ID=grid> <ColumnModel runat=server> <Columns> <ext:RowNumbererColumn /> <ext:Column Align=Center
I have a GLOBAL TEMPORARY table in Oracle. It uses ON COMMIT DELETE ROWS.
I have a merge statement that needs to compare on many columns. The source

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.