On Jan 11, 2008 2:43 PM, Sonny Savage <[EMAIL PROTECTED]> wrote:
> jQuery might even have a shortcut that assigns all the elements of the array
> at once:
> $("table.tablesorterLQ").tablesorter({sortList:[[0,0],[0,1]], widgets:
> ['zebra']});

Sonny is right. What he has should work. Here is some code I have that
makes the 2 tables sortable.

<link rel="stylesheet" type="text/css" media="screen" href="style.css"
charset="utf-8" />
<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
        $('.tablesorter').tablesorter({
                sortList: [[0,0],[0,1]],
                widgets: ['zebra']
                });
});
</script>

<cfoutput>
<cfloop from="1" to="2" index="i">
        <table class="tablesorter" id="tblRep#i#">
                <thead>
                <tr>
                        <th>name</th>
                        <th>number</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                        <td>Aaron #i#</td>
                        <td>20</td>
                </tr>
                <tr>
                        <td>Bill #i#</td>
                        <td>10</td>
                </tr>
                </tbody>
        </table>
</cfloop>
</cfoutput>

-- 
Matt Williams
"It's the question that drives us."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296458
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to