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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:58:05+00:00 2026-06-12T20:58:05+00:00

I have this table, structured in this way: Html part: <table id=table_div class=table table-striped

  • 0

I have this table, structured in this way:

Html part:

<table id="table_div" class="table table-striped table-condensed"><tbody></tbody></table>

JS part:

var data = json_response['data'];

$("#table_div").html('<thead><tr><td>TIMESTAMP</td><td>VALUE</td></tr></thead>');

$.each(data, function(index, value) {
$('#table_div > tbody:last').append('<tr><td>' + value + '<td></tr>'); 
});   

This code generates me a table in the style of twitter bootstrap. Now I would like that the table slide up and down or is formed from more and more pages.

I don’t know if I can use and in that way the accordion tool of twitter bootstrap. Or any other script. Can you help me?

EDIT

The data variable is in this type:

var data = [[1348754599, 0.0], [1348754639, 0.0], [1348754680, 0.0], [1348754721, 0.0], [1348754761, 0.0], [1348754802, 0.0], [1348754842, 0.0], [1348754883, 0.0], [1348754924, 0.0], [1348754964, 0.0], [1348755005, 0.0], [1348755045, 0.0], [1348755086, 0.0], [1348755126, 0.0], [1348755167, 0.0], [1348755208, 0.0]];
  • 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-12T20:58:06+00:00Added an answer on June 12, 2026 at 8:58 pm

    Can you setup a fiddle for this, to clarify what you need?

    Update: Some corrections had to be made to the original fiddle, and the example uses the tablesorter jQuery plugin. Here is the revised HTML to make it work:

    <div class="container">
        <table class="table table-striped table-bordered table-condensed"></table>
    </div>
    

    and revised JavaScript:

    var data = [
        [1348754599, 0.0],
        [1348754639, 0.0],
        [1348754680, 0.0],
        [1348754721, 0.0],
        [1348754761, 0.0],
        [1348754802, 0.0],
        [1348754842, 0.0],
        [1348754883, 0.0],
        [1348754924, 0.0],
        [1348754964, 0.0],
        [1348755005, 0.0],
        [1348755045, 0.0],
        [1348755086, 0.0],
        [1348755126, 0.0],
        [1348755167, 0.0],
        [1348755208, 0.0]
    ];
    
    $('table').html('<thead><tr><th>TIMESTAMP</th><th>VALUE</th></tr></thead><tbody></tbody>');
    
    $.each(data, function (index, value) {
        $('table > tbody').append('<tr><td>' + index + '</td><td>' + value + '</td></tr>');
    });
    
    $(function () {
        $('table').tablesorter();
    });
    

    Here is a fiddle with a working example: http://jsfiddle.net/jkvr8/41/

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

Sidebar

Related Questions

I have a posts table structured this way: id | title | content |
I have a table structured like this: <table> <tr id=id1 class=parent></tr> <tr class=id1></tr> <tr
I'm a bit confused on this. I have a data table structured like this:
I have a log table in SQL Server. Table is structured this way: Unique
I have a MySQL table structured somewhat like this: type name value ===================== 1
I have a table structure like this: <table> <tr> <td> <ul> <li class=check></li> </ul>
Suppose I have the following html: var testString = ' <span id='id'> <div> <table>
I have a question about how to present some structured data using HTML. I
I have a table structured like this: CREAT TABLE `member_logins` ( `id` bigint(10) unsigned
I have loaded a table of data into an HTML page so that it

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.