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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:31:15+00:00 2026-05-31T01:31:15+00:00

I have a table which displays some names and each row contains 3 cells.

  • 0

I have a table which displays some names and each row contains 3 cells.

I would like to filter names and I am using jQuery to do it.

It works:

  1. cells that do not match are HIDDEN by the script

  2. cells that do match are DISPLAYED by the script

  3. cells that do match are realigned horizontally, so that they are always displayed from left to right continuously.. which is good

The last thing that I am trying to achieve is to redistribute the matching cells one after the other, no matter which row they were located before filtering them!

So if a row contains only 1 match and the row below contains 0 matches and the row after contains 2 matches, then I want the 3 matches to be shown in the same row!

For example if you go here:

http://jsfiddle.net/yCR73/1/

and you type “a” in the search field, you will get 2 results.
But you won’t get them in the same row,
what I would like to get after the filtering is cell “fffaaa” near “aaafff”, not below it!

  • 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-31T01:31:17+00:00Added an answer on May 31, 2026 at 1:31 am

    I don’t know that there’s a particularly reasonable way to do this with tables/table cells. I was able to splice together a quick jsfiddle by replacing the table with a set-width div and the table-cells with floated divs. This way hiding the other ‘cells’ automatically re-aligns the ‘rows’.

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

Sidebar

Related Questions

I have a table named Books which contains some columns. ColumnNames: BookId, BookName, BookDesc,
I have web page in PHP which displays all records in a table. I
I have table which contains double values stored in mysql database ...I need to
I have a table which is full of arbitrarily formatted phone numbers, like this
I have a table which contains my server status create table ServerStatus ( ServerId
I'm designing a Java application using SWT. I have some tables which will display
I have a table with multiple rows, each row has: layout (select) images *
I have a table of assignments. Within each row is a cell, that when
I have some HTML code which displays 9 images with fancybox styles. I duplicated
I have a table similar to: ID...NAME.....HTMLTEXT 1....Footer....`<b>test</b>` where each entry has some HTML

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.