TableSorter plugin throws Object does not support this property or method
Hi All,
I'm getting the Object does not support this property or method JS Error, when I use this plugin.
Below is my code.
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>Insert title here</title>
- <script src="http://code.jquery.com/jquery-1.9.0.js"></script>
- <script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>
- <script type="text/javascript" src="jquery.tablesorter.min.js"></script>
- <link rel="stylesheet" type="text/css" href="style.css" />
- </head>
- <body>
- <table id="myTable" class="tablesorter">
- <thead>
- <tr>
- <th>Last Name</th>
- <th>First Name</th>
- <th>Email</th>
- <th>Due</th>
- <th>Web Site</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Smith</td>
- <td>John</td>
- <td>jsmith@gmail.com</td>
- <td>$50.00</td>
- <td>http://www.jsmith.com</td>
- </tr>
- <tr>
- <td>Bach</td>
- <td>Frank</td>
- <td>fbach@yahoo.com</td>
- <td>$50.00</td>
- <td>http://www.frank.com</td>
- </tr>
- <tr>
- <td>Doe</td>
- <td>Jason</td>
- <td>jdoe@hotmail.com</td>
- <td>$100.00</td>
- <td>http://www.jdoe.com</td>
- </tr>
- <tr>
- <td>Conway</td>
- <td>Tim</td>
- <td>tconway@earthlink.net</td>
- <td>$50.00</td>
- <td>http://www.timconway.com</td>
- </tr>
- </tbody>
- </table>
- </body>
- <script type="text/javascript">
- $(document).ready(function()
- {
- $("#myTable").tablesorter();
- });
- </script>
- </html>
The included js files and css are in the same folder as this html (jsp).
Can you please let me know where am I going wrong?
Thanks a lot.