Link to home
Start Free TrialLog in
Avatar of Webboy2008
Webboy2008

asked on

javascript, jquery, table

http://www.kryogenix.org/code/browser/sorttable/

I have used above js for my html table. It works fine until I add one extra thead
like the following. After I added 'thead', the sorting feature is no longer available.
any experts can help?

Thanks

<table>
<thead>
<tr><td>....</td></tr>
</thead>
<thead>
<tr><td>....</td></tr>
<thead>
<tbody>
<tr><td>...</td></tr>
</tbody>
</table>
Avatar of soupBoy
soupBoy
Flag of United States of America image

I am not familiar with that script, however it may be a typo in your 'pseudo' code you pasted....but I see you are not closing your <thead> tags....

 <table>
<thead>
<tr><td>....</td></tr>
</thead>
<thead>
<tr><td>....</td></tr>
<thead> <!-- was this meant to be closed? ie: </thead> -->
<tbody>
<tr><td>...</td></tr>
</tbody>
</table>

Open in new window

Avatar of Webboy2008
Webboy2008

ASKER

why don't you just download the file and add the codes...yes it is missing the </thead>
you can add it and try and see it works or not.
Downloading the script wouldn't mean a thing if your markup is bad.

With your example post, your markup was bad.  

Please post your code, otherwise we have nothing to go off of.
It looks like you should only have one <thead> element.
ASKER CERTIFIED SOLUTION
Avatar of Lee Wadwell
Lee Wadwell
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial