While sorting a table with the Tablesorter plugin, I'd like to have a
table cell within an interior column use the rowspan attribute (the
result being this column has only a single value). I can't figure out
how to use it however. The docs I saw (http://lovepeacenukes.com/
tablesorter/2.0/docs/) go over using rowspan within table headers, but
I don't see info on rowspan with table cells.

Below is some example code with only two rows. One row has a
rowspan="2" for the Email cell, and the other's email cell is
commented out. Sorting only works properly when the table is sorted
such that the rowspan="2" cell is listed first - otherwise the rowspan
attribute is applied on the row that cell is now listed at, rather
than at the first row, where I'd like it.

What is the proper way to use rowspan within a table?

PS - Is the jQuery Plugins mailing list still actively moderated?

-------------------------
<table id="myTable" class="tablesorter">
<thead>
<tr>
   <th>Last Name</th>
   <th>First Name</th>
   <th>Email</th>
   <th>Due</th>
   <th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
   <td>Smith</td>
   <td>John</td>
   <td rowspan="2">jsm...@gmail.com</td>
   <td>$50.00</td>
   <td>http://www.jsmith.com</td>
</tr>
<tr>
   <td>Bach</td>
   <td>Frank</td>
   <!--<td>fb...@yahoo.com</td>-->
   <td>$50.00</td>
   <td>http://www.frank.com</td>
</tr>
</tbody>
</table>

Reply via email to