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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:56:41+00:00 2026-06-06T11:56:41+00:00

I have a large table of data (that displays test data) that is separated

  • 0

I have a large table of data (that displays test data) that is separated by date. I sort this data POST-processing using JQuery (the table is built in Perl and sorting really can’t be done there). After this data is sorted by date, I would like to add a separating line between each day.

For instance, I’d like the five test runs from June 5th, followed by a blank line (a blank “tr”, which will have data added to it later but that’s not important here), followed by the June 4th runs, then a blank line, then the June 3rd runs, etc.

Here is a sample of a table I have: http://jsfiddle.net/pyUz8/1/

Here is the pseudocode I have, just not sure how to do this in JQuery:

now = thisDate.substring(0,10) //Look at only the date, the time
doesn’t matter then = previousDate.substring(0,10)

If (then != now) insert("<tr></tr>"); //inbetween then and now

How can this be done in JQuery?

  • 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-06-06T11:56:43+00:00Added an answer on June 6, 2026 at 11:56 am

    run through each row, compare current date with next date, insert a tr after the current row if dates differ. Something like this:

    $('tr').each(function(){
      var current_date = $(this).children('.date_cell').val() // or whatever you call your date cell
      var next_date = $(this).next().children('.date_cell').val() // also strip these evaluations from the time as you described...
      if (current_date != next_date){
        $(this).after('<tr class="blank_row"></tr>)
      }
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large table of supplemental data that is filled in from a
I have an ASP.NET MVC application with a page that displays a large table
I have one large database table of request data, much like Apache request logs,
I have a relatively large table (5,208,387 rows, 400mb data/670mb index), all columns i
I have just create a large table with more than 30 rows of data,
I have a table with large amount of data and want to take too
I have a large mysql table that I would like to transfer to a
I have a webpage on my site that displays a table, reloads the XML
I have an HTML table, where each cell contains a large amount of data.
The Problem We have a large web application that stores and displays sensitive HIPAA-related

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.