write jquery plugin
<p>i wrote a jquery function and now i want to use it as a plugin so i could use that more than 1 place.the code lookes like this:</p>

<pre><code>    function loadTable(){
    $.post("includes/action.php", {action: "gettable"}, function(html){
        $("#tblstudents tbody").html(html);
        $("#tblstudents")
            .tablesorter({widthFixed: false, widgets: ['zebra'], sortList: [[0,0]]})
            .tablesorterPager({container: $("#pager")})
            .tablesorterFilter({filterContainer: $("#filter-box"), filterClearContainer: $("#filter-clear-button")});
    });
}
</code></pre>

<p>And I want it have functions for setting "includes/action.php" and "gettable" in $.post function and $("#pager") ,$("#filter-box") and $("#filter-clear-button") from $("#tblstudents").Can anyone help me?</p>
