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 3407160
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:43:00+00:00 2026-05-18T05:43:00+00:00

This bug is driving me absolutely crazy. I’m trying to filter a number of

  • 0

This bug is driving me absolutely crazy.

I’m trying to filter a number of complex table rows using jQuery 1.4.4.

The rows contain <input type="button" /> elements which are styled using jQuery UI 1.8.5.

This screenshot shows what the rows look like with no search filter applied.
Correct Row layout

These rows are dynamically added via an AJAX post call and are inserted after templating. This is the JS code for the post call.

$.post($.url('Asset/GetSites/'), { assetType: assetType, siteType: siteType }, function (data) {
    //hide the progress spinner
    $('.progSpinner').fadeOut();
    if (data.error) {
        ShowErrorBar();
        return;
    }
    $('#SiteRowTemplate').tmpl(data).appendTo(tbody);
    $('#assetTable input[type=button]').button();

    //tbody.hide().fadeIn();

    //trigger a sort
    $('#assetTable').trigger('update');
    $('#assetTable').trigger('sorton', [[[0, 0]]]);

    $('#pageLbl').text(assetTypeName + ' Assets: ' + siteTypeName);
});

I’m then using a basic text input to filter based on the site and the description columns. This is where the issue arises. This is the code for that:

var rows = $('#assetTable tbody tr.assets-site-row');
rows.each(function () {
    var row = $(this);
    var id = row.attr('id');

    if (row.attr('id').toLowerCase().indexOf(val) != -1 ||
    row.children('td').text().toLowerCase().indexOf(val) != -1) {
        //Search is a match
        row.show();
        $('#details' + id).show();
    }
    else {
        //Search is not a match
        row.hide();
        $('#details' + id).hide();
    }
});

In Chrome, IE8, Firefox, this works correctly. The rows that are not part of the search query are hidden correctly, but in IE7 things get broken.
Failed table layout

You can see that the jQuery UI buttons are not correctly hidden from view, for the rows that are suppose to be hidden. If I open up the developer tools and toggle the inline diplay:none style off and on the particular ‘hidden’ row, then the row hides correctly.

I’m basically at my wits end with this one. Anyone have any suggestions?

  • 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-18T05:43:00+00:00Added an answer on May 18, 2026 at 5:43 am

    I’ve had random issues like this happen in the past with dynamically added children. Basically I’ve had to call .children().hide(); and then call hide on the parent. The best I could find was that the children elements were correctly mapped in the DOM of IE.

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

Sidebar

Related Questions

This is driving me crazy and I'm shocked that official documentation is absolutely useles.
I am trying to detetct/work around this bug in RSS elements. That means I
I wonder is this a bug in chrome or jQuery, or am I misunderstanding
This has been driving me nuts all day. I have a weird bug that
This JavaScript demonstrates a bug in IE that is driving me nuts right now:
I've found a possible bug while i was using jquery and Ajax function on
I have this really weird bug. When I scroll down my table view, down
I experienced this bug in a more complex application I am developing. I execute
This is driving me crazy. I'd like to know why in this PHP example
This bug is similar to: jQuery reports incorrect element height in Firefox iframe He

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.