Hi all, I have a table built dynamically (serverside). I have table
sorter on the table and when I sort it sorts the colors or the rows as
well. It is very irritating and I am not sure how to correct it.
I tried repopulating the class via jquery labeling each odd and even
but siince the page doesn't post back it doesn't hold past the first
page load.
Here is a sample snippet of my code:
<script type="text/javascript">
$(document).ready(function()
{
$('.becker tbody tr:odd').removeClass();
$('.becker tbody tr:even').removeClass();
$('.becker tbody tr:odd').addClass('row0 odd');
$('.becker tbody tr:even').addClass('row1 even');
}
);
</script>
<table class="ricTable" width="70%" attributes id="tablesorter-demo"
class="tablesorter" ric:input='yes'>
<thead>
<tr>
<th class="slup"><div align="left" style="color: #ffffcc">Reps
ID</
div></th>
<th class="slup"><div align="left" style="color:
#ffffcc">Folder ID</
div></th>
<th class="slup"><div align="left" style="color: #ffffcc">Date
Submitted</div></th>
<th class="slup"><div align="left" style="color: #ffffcc">City</
div></th>
<th class="slup"><div align="left" style="color:
#ffffcc">State</
div></th>
<th class="slup"><div align="left" style="color:
#ffffcc">Approval
Request</div></th>
<th class="slup"><div align="left" style="color:
#ffffcc">Attachments</div></th>
</tr>
</thead>
<!---<cfdump var="#findApvls#">--->
<tbody class="becker">
Any suggestions would be very helpful...