[jQuery] Problem getting tablesorter working
Hello ...
I was looking to experiment w/ the tablesorter plugin - went &
downloaded it, fired it up, and no tablesorter appears. So in trying
to start w/ a minimal example I created a file w/ just the tablesorter
sample code, still no dice. Next I theorize that perhaps using 1.3.1
is a problem, so I try it with 1.2.6, still nothing happens. I know
that *something* is going on, because if I remove the loading of the
tablesorter JS file, I get an error on the $("#myTable").tablesorter()
call. I'll include the file I'm using below, when I try to load it I
only see the plain HTML table. Note that online tablesorter examples
work fine, so I'm figuring that I'm missing something minor here. Any
ideas?
<html>
<head>
<script type="text/javascript" src="jquery-1-2-6.js"></script>
<script type="text/javascript" src="jquery.tablesorter.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#myTable").tablesorter();
}
);
</script>
</head>
<body>
<table id="myTable">
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Email</th>
<th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>jsmith@gmail.com</td>
<td>http://www.jsmith.com</td>
</tr>
<tr>
<td>Doe</td>
<td>Jason</td>
<td>jdoe@hotmail.com</td>
<td>http://www.jdoe.com</td>
</tr>
</tbody>
</table>
</body>
</html>