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

The Archive Base Latest Questions

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

I made a very basic example, and when I use a hyphen on the

  • 0

I made a very basic example, and when I use a hyphen on the first <tr> <td> (first row, first cell), tablesorter no longer works.
I’m using jquery 1.7.1, and latest tablesorter.min.js

Code examples:

Works -> No hyphen: http://jsfiddle.net/6gjLs/4/
Works -> Hyphen on second row: http://jsfiddle.net/8Wet2/4/
Not working -> Hyphen on first td on first row: http://jsfiddle.net/YkaCv/4/

The code as you can see is exactly the same on the 3 examples, only the table data changes.

Anyone experienced the same problem? Any workaround?

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

    Hey So here is the reason why it doesn’t work & hack-y solution.

    Reason:

    So it table sorter code does take care of dash – .

    https://github.com/jbritten/jquery-tablesorter-filter/commit/378b7ef36e9201df4ec6bd3fb2487e8c9ec9359f

    but I am reading the plugin and should fin out why this hidden first row resolves it

    Possible solution:

    a) It checks for at least one character to start parsing that hyphen/dash (-) If you know any HTML encoding which can fake a character which will not appear. AND I tried it with underscore (_) it works as well. I will keep playing but

    b) *If* you can try putting this as a first row that will be awesome – do an empty row at the top with some content and then second row as dash

    Working CODE: (In your JSFiddle - change your TBODY to this one and this should work man.
    
           <tbody>
     <tr style="display:none;">
                        <td>foobar</td>                                                                                          
                    </tr>                
                    <tr>
                        <td>-</td>                                                                                          
                    </tr>
                    <tr>
                        <td>B</td>                                               
                    </tr>
                    <tr>
                        <td>C</td>                                               
                    </tr>
                </tbody>
    

    I hope this helps so far.

    Cheers,

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

Sidebar

Related Questions

I am a very new programmer, I have made a couple basic applications, however
I am learning C++ and made a script, a very basic player attacking monster
I've made a VERY basic website which takes an array of image URLs, zips
I've made a VERY basic website which takes an array of image URLs, zips
I have created a very basic custom layout to set out a menu made
I made a very basic dictionary that just stores a username in it, and
I'm not sure what is going on here, I made a very basic HTML/CSS
I've made a very simple aspect, and found a problem when debugging it (see
I've made a very simple REST controller method with Spring 3.0.0.RC1 that uses hibernate
I have made a very simple AppleScript to close tabs in Safari. The problem

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.