West415
2010-02-25 22:34:35 UTC
Hi,
I am using a jquery plugin called tablesorter. It works fine but I've found
a quirk and can't seem to fix it and would love some help if possible. When
you sort, the sort works, but for some reason all the <hr> tags which render
a horizontal link end up getting placed at the top of the table. So the
data sorts right but something is going on when i use the <hr> tags.
Here is the code:
<script type="text/javascript">
$(document).ready(function() {
$("#my_table").tablesorter({
debug:false
});
}
);
</script>
<table id="my_table" cellpadding="5" cellspacing="0">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>***@gmail.com</td>
<td>$50.00</td>
<td>http://www.jsmith.com</td>
</tr>
<tr>
<td colspan="5"><hr style="width: 585px;"></td>
</tr>
<tr>
<td>Bach</td>
<td>Frank</td>
<td>***@yahoo.com</td>
<td>$50.00</td>
<td>http://www.frank.com</td>
</tr>
<tr>
<td colspan="5"><hr style="width: 585px;"></td>
</tr>
<tr>
<td>Rick</td>
<td>Smith</td>
<td>***@yahoo.com</td>
<td>$50.00</td>
<td>http://www.frank.com</td>
</tr>
</tbody>
</table>
Any help appreciated
-ws
I am using a jquery plugin called tablesorter. It works fine but I've found
a quirk and can't seem to fix it and would love some help if possible. When
you sort, the sort works, but for some reason all the <hr> tags which render
a horizontal link end up getting placed at the top of the table. So the
data sorts right but something is going on when i use the <hr> tags.
Here is the code:
<script type="text/javascript">
$(document).ready(function() {
$("#my_table").tablesorter({
debug:false
});
}
);
</script>
<table id="my_table" cellpadding="5" cellspacing="0">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>***@gmail.com</td>
<td>$50.00</td>
<td>http://www.jsmith.com</td>
</tr>
<tr>
<td colspan="5"><hr style="width: 585px;"></td>
</tr>
<tr>
<td>Bach</td>
<td>Frank</td>
<td>***@yahoo.com</td>
<td>$50.00</td>
<td>http://www.frank.com</td>
</tr>
<tr>
<td colspan="5"><hr style="width: 585px;"></td>
</tr>
<tr>
<td>Rick</td>
<td>Smith</td>
<td>***@yahoo.com</td>
<td>$50.00</td>
<td>http://www.frank.com</td>
</tr>
</tbody>
</table>
Any help appreciated
-ws
--
View this message in context: http://old.nabble.com/Quirks-with-Tablesorter-tp27714539s27240p27714539.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
View this message in context: http://old.nabble.com/Quirks-with-Tablesorter-tp27714539s27240p27714539.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.