Trouble with jquery external file - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Trouble with jquery external file (/showthread.php?tid=53603) |
Trouble with jquery external file - El Forum - 07-31-2012 [eluser]whiteae[/eluser] I can't get my page to execute the table sorter based on the Tablesorter 2.0 plugin. My code is [removed][removed] [removed] Code: $(document).ready(function() It's not showing anything when I go to my page. I don't know what I have done wrong. If you see anything let me know. Thanks Trouble with jquery external file - El Forum - 07-31-2012 [eluser]pickupman[/eluser] For the tablesorter plugin, you need to have your heading tags inside a <thead> <tr> <th> tags. You will need to use: Code: $template = array('table_open' => '<table id="myTable" class="tablesorter" border="0" cellpadding="4" cellspacing="0">', Trouble with jquery external file - El Forum - 08-03-2012 [eluser]whiteae[/eluser] Still doesn't work. Trouble with jquery external file - El Forum - 08-03-2012 [eluser]pickupman[/eluser] I have tested this and the table does sort as expected. Code: //head Unless you have copied over a css/theme file, you may think the table is not working like on the demo page, however the column headings should still sort when clicking them. |