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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:30:13+00:00 2026-05-18T22:30:13+00:00

When the page loads, all the records show. Sorting works great until show-hide is

  • 0

When the page loads, all the records show. Sorting works great until show-hide is used to filter the rows so only some show. Then the header row–with the arrows for sorting–DISAPPEARS. The problem is only in Firefox. It works great in IE7 and IE8.

I’m using jQuery 1.4.2 from Google.

Code for show-hide

$(document).ready(function() {
    // show all the rows
    $("#org_status tr").show();

    //find selected filter
    $("#filter_status a").click(function(evt) {
        evt.preventDefault();
        $("#org_status tr").hide();
        var id = $(this).attr('id');

        $("." + id).show();
    });
});

Here is the HTML:

<!-- show-hide "buttons" -->
<p id='filter_status'>Filter by status: 
    <a href='#' id='All'>All</a> 
    <a href='#' id='Active'>Active</a> 
    <a href='#' id='Inactive'>Inactive</a> 
    <a href='#' id='Pending'>Pending</a>
</p>

<!-- table to sort ->
<table id='org_status' class='info_table tablesorter'>
  <thead>
    <tr>
      <th class='org-name-col'>Name</th>
      <th class='org-status-col'>Status</th>
    </tr>
  </thead>
  <tbody>
<tr class='All Active'>
  <td><a href='admin/org_edit.php?org=29'>Foo Net</a></td>
  <td>Active</td>";
</tr>
<tr class='All Inactive'>
  <td><a href='admin/org_edit.php?org=22'>Bar</a></td>
  <td>Active</td>";
</tr>
<tr class='All Pending'>
  <td><a href='admin/org_edit.php?org=11'>
      Bar Foo Very Long Org Name Goes Here</a></td>
  <td>Active</td>";
</tr>
  </tbody>  
</table>    
  • 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-18T22:30:14+00:00Added an answer on May 18, 2026 at 10:30 pm

    I don’t think this is just an issue for firefox because the header row is first made to hide and the code deosn’t show it up later.
    Try changing the code as follows:
    Javascript:

    $(document).ready(function() {
        // show all the rows
        $("#org_status tr").show();
    
        //find selected filter
        $("#filter_status a").click(function(evt) {
            evt.preventDefault();
            $("#org_status tr").hide();
            var id = $(this).attr('id');
    
            $("." + id).show();
        $(".showAlways").show();
        });
    });
    

    HTML:

    <p id='filter_status'>Filter by status: 
        <a href='#' id='All'>All</a> 
        <a href='#' id='Active'>Active</a> 
        <a href='#' id='Inactive'>Inactive</a> 
        <a href='#' id='Pending'>Pending</a>
    </p>
    
    <table id='org_status' class='info_table tablesorter'>
      <thead>
        <tr  class="showAlways">
          <th class='org-name-col'>Name</th>
          <th class='org-status-col'>Status</th>
        </tr>
      </thead>
      <tbody>
    <tr class='All Active'>
      <td><a href='admin/org_edit.php?org=29'>Foo Net</a></td>
      <td>Active</td>";
    </tr>
    <tr class='All Inactive'>
      <td><a href='admin/org_edit.php?org=22'>Bar</a></td>
      <td>Active</td>";
    </tr>
    <tr class='All Pending'>
      <td><a href='admin/org_edit.php?org=11'>
          Bar Foo Very Long Org Name Goes Here</a></td>
      <td>Active</td>";
    </tr>
      </tbody>  
    </table>    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I uploaded my symfony2 project to server grove. The main page loads, but all
I have a jQuery dialog which loads an external php page. All is working
First, I am selecting all records on page-load like this: OleDbCommand objCmd = new
I want to implement some kind of sorting against my records, according to many
I currently create an object on page load with all possible key/value pairs and
All, I've got the following code to load a page in Fancybox: $(#display_songs).fancybox({ 'href'
My page loads a TextView which is scrollable. Unfortunately the position appears to stick
My Jquery ajax page loads and shows up in the DIV that lays itself
When my Silverlight page loads, I want to set focus on a control. Simple
After my page loads my text disappears and I am having trouble determining why.

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.