I'm writing a plugin to sort a table. When someone clicks on the TH it sorts the column.
So my Jquery would be something like"
$("#TableID").AddSorting();
I'm not sure how to reference the sorting function in the Plugin. Without the plugin I'm doing the below.
<th data-sort="LastName, FirstName">
<a onclick="SortTheGrid("FirstName, LastName");">First Name</a>
</th>
Maybe in the plugin I can just do:
$this.find("th[data-sort] a").click(function(){...});
thanks Chuck