jquery - I am getting this $(...).dataTable(...).columnFilter is not a function -
i want start looked @ this question , using correct constructor.
i error when running code:
$(...).datatable(...).columnfilter not function
html:
<table class="table table-striped" id="activeprojects"> <thead> <tr> <th>project name</th> <th>project number</th> <th>manager</th> <th>architect</th> </tr> </thead> <tbody> </tbody> <tfoot> <tr> <th></th> <th></th> <th></th> <th></th> </tr> </tfoot> </table> <script> $(document).ready(function () { var table = $('#activeprojects').datatable({ "processing": true, "serverside": true, "ajax": { "url": "../api/project/getall/", "datasrc": "" }, "columns": [ { "data": "projectname" }, { "data": "projectnumber" }, { "data": "projectmanager" }, { "data": "projectarchitect" } ] }).columnfilter({ aocolumns: [ { type: "text" }, { type: "text" }, { type: "text" }, { type: "text" } ] }); }); </script>
Comments
Post a Comment