javascript - Tablesorter sorting arrows are unable to use -
i'm new jquery , php programming. think stupid question , many question here nothing works. have gone through these issue 4 hours already, feel desperate fix this.
as can see, table looking ok. but... arrows not working. once clicked, nothing me don't know what's wrong it.
these codes far. (i skipped major of table codes reduce length of post)
<head> <link rel="stylesheet" type="text/css" href="jquery.tablesorter/docs/css/jq.css?4005963428"/> <link rel="stylesheet" type="text/css" href="jquery.tablesorter/themes/green/style.css?4005963428"/> <link rel="stylesheet" type="text/css" href="jquery.tablesorter/addons/pager/jquery.tablesorter.pager.css?4005963428"/> <style> table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; } </style> <script type="text/javascript" src="jquery.tablesorter/jquery-latest.js"></script> <script type="text/javascript" src="jquery.tablesorter/jquery.tablesorter.js"></script> <script type="text/javascript" src="jquery.tablesorter/jquery.tablesorter.min.js"></script> <script type="text/javascript" src="jquery.tablesorter/jquery.metadata.js"></script> <script type="text/javascript" src="jquery.tablesorter/addons/pager/jquery.tablesorter.pager.js"></script> </head> <br><br> <table id='mytable' class='tablesorter' style="width:100%" > <?php echo "<thead>"; ?> <tr> <th>name</th> <th>lastname</th> <?php for($i = 0; $i < $count; $i++){ while ($rowss = mysql_fetch_array($result3, mysql_assoc)){ ?> <th><?php echo $rowss['skill_name'] ?> score</th> <?php } } ?> <th>overall score</th> <th>status</th> <th colspan="3">view information</th> </tr> <?php echo "</thead>"; ?> <?php echo "<tbody>"; while ($rows2 = mysql_fetch_array($result4, mysql_assoc)){ ?> //table td elements in loop <?php } echo "</tbody>"; ?> </table> <script type="text/javascript" > $("#mytable").tablesorter({ // sort on first column , third column, order asc sortlist: [[0,0],[2,0]] }); </script>
i have no idea this, please help.
cheers, gznero
Comments
Post a Comment