I am attempting to load the tablesorter JQuery plugin, I am using JQuery version 2.1.1 and the latest version of tablesorter. I load them in the following order :
<script src="javascript/jquery-2.1.1.min.js"></script>
<script src="javascript/jquery.tablesorter.min.js"></script>
I have tried forks of tablesorter and none of them work. I tested that I had the right plugin file location by putting
alert("Plugin File");
at the top of the file and this works when the page loads.
None of the plugins functionality is working and I tested it using this code :
$(document).ready(function(e){
if(jQuery.fn.tablesorter){
alert("pluginloaded");
}
jQuery.tablesorter();
}
}
The alert does not work and firebug reports that tablesorter is not a function.