Assuming a structure like:
- <table>
- <thead>
- <tr>
- <th>Sample</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <ul>
- <li>25
- <ul>
- <li>Some Name</li>
- </ul>
- </li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
How can I use textExtraction to sort based on whatever number is in that first LI element?
I have tried various things, but just can't seem to get it.
//Various forms of the below... trying to find the right path to the element.
textExtractionCustom: { 0: function(o) { return $('li','ul.serversgs',o).html(); } }
textExtraction: { 0: function(o) { return $('li','ul.serversgs',o).html(); } }
// This from within my own function called by whatever column I'm sorting by (0 above).
return node.childNodes[
0].childNodes[
0].innerHTML;
And others.. what am I missing? Am I wrong and I cannot do this, even though the sample above is directly from the Tablesorter site as an example of bypassing HTML markup inside the TDs?
Thanks