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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:31:31+00:00 2026-05-23T03:31:31+00:00

I would like that the Signed button in this JSfiddle sorts the column with

  • 0

I would like that the Signed button in this JSfiddle sorts the column with the check boxes, like it actually does perfectly.

http://jsfiddle.net/littlesandra88/DSRmg/

I noticed that tinySort, the library used to sort the tables, can’t sort the column with just the check boxes, so I added a &nbsp; (or X in the JSfiddle for visability) for those <td>‘s that have the check box checked, and it could sort the column.

Problem

The problem is, that when Save is clicked the &nbsp; or X in this case, should be added, so when Signed is clicked, the column is sorted correctly.

In this post learned I how to add and remove &nbsp or X.

It seams to me that JQuery can’t find the <label>, because it is inside a <td>.

How to reproduce problem

Try un-checking one of the checkboxes and click Signed. Now the check box column is not sorted correctly any longer.

Question

How do I get the Save buttons to add a &nbsp;, so the column can be sorted?

Update

In this have I implemented Rakesh’s answer of tablesort. But I still can’t get it to work.

  • 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-23T03:31:31+00:00Added an answer on May 23, 2026 at 3:31 am

    I would suggest you to use tablesorter plugin which gives you an option to have your own parser logic for sorting.

    Take a look at the code – http://jsfiddle.net/srakesh/DSRmg/8/

    HTML:

    <td class="checkbox"> <input name="signed" type="checkbox" checked ><span class="hidden">1</span> </td>
    

    Javascript:

    $(document).ready(function() { 
        $("#myTable").tablesorter();              
        $('#myTable input:checkbox').click(function() {
            var order = this.checked ? '1' : '0';
            $(this).next().html(order);
            $(this).parents("table").trigger("update");
        })
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of a good alternative to cron? I would like something that
Given a list of urls, I would like to check that each url: Returns
Signed URLs are paths like below, is that the correct name for those? http://mydomain.tld/<randomhash>.<extension>
I would like something that I can use as follows var msg = new
I would like to confirm that the following analysis is correct: I am building
I would like to think that some of the software I'm writing today will
I would like a system that monitors a process and would kill said process
I would like to ensure that I only subscribe once in a particular class
I have byte array as input. I would like to convert that array to
I have an element with an onclick method. I would like to activate that

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.