I am experimenting with the jquery tablesorter plugin (outstanding) and am able to make it work flawlessly for tables that are loaded with the initial page. However, if I generate active content, e.g. echo a <table> into a <div> by calling $(#outputdiv).load(script.php) the resulting table will not sort. In the plugin documentation I caught mention of .trigger("update") but that did not solve the problem. What else am I missing? THANK YOU in advance for any suggestions.
*** javascript *** <script type="text/javascript"> $(document).ready(function(){ $("table").tablesorter(); $("#menuitem").click(function(event){ $("#outputdiv").load("script.php"); $("table").trigger("update");//didn't help }); }); </script> *** html body *** <div id="outputdiv"></div> *** script.php *** echos a super simple table with the appropriate <thead></thead> and <tbody></tbody> tags for the tablesorter