[jQuery] TableSorter vs CMS

[jQuery] TableSorter vs CMS

With the help of this group, I got my first JQuery function to work - a combination sortable table columns/alternate row colors script. The only problem is that it works on my static page but not on a dynamic page in my content management system (PHP).


The weird thing is that I copied the source code from a dynamic page into my static page, and it does work - but only on the static page.

On my dynamic page, the sortable column function doesn't work at all. The zebra stripes function works only to the extent that any row I mouseover acquires a colored background.


Does anyone have a hunch what's going on?

Thanks.

* * * * *

<script src="/1A/js/jquery-1.2.6.min.js" type="text/javascript"></script>

<script src="/1A/js/tablesorter/jquery.tablesorter.js" type="text/javascript"></script>
<script language="JavaScript" type="text/JavaScript">
 $(document).ready(function() 
  { 
  $("#myTable").tablesorter({ widgets: ['zebra']} ); 
  }
 );
</script>