I'm pretty sure jQuery can grab all the elements in a document with a
specific class, so you should tell it to add the sortable behavior to all
the tables with a class of "tablesorterLQ".
On Jan 11, 2008 10:35 AM, Paul Ihrig <[EMAIL PROTECTED]> wrote:
> i have a table thats generated in a cfloop. so it spits out multiple
> tables.
> i am using jquery tablesorter to sort the tables but it only works on the
> first one.
>
> how would i count the tables and pass the value into js & also into the ID
> of the generated tabel...
> like
> $("#tblRep0").
> $("#tblRep1").
> $("#tblRep2").
>
> the script part above my queries...
>
> <script type="text/javascript">
> $(function() {
> $("#tblRep").tablesorter({sortList:[[0,0],[0,1]], widgets: ['zebra']});
> });
> </script>
> </head><body>
>
> The html generated by cf
> <table class="tablesorterLQ" id="tblRep" title="Sales Rep's">
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:296424
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4