java - Datatables Plugin 'ColumnFiltering()' -


i have 2 codes. why no filtering options code below? want regular filtering each column

$(function(){    otable = $('#escapetbale).datatable().columnfilter({     "aocolumns": [                 {                      type: "text",                      bregex: true,                      bsmart: true                 },                 {                      type: "text",                      bregex: true,                      bsmart: true                 },                  {                      type: "text",                      bregex: true,                      bsmart: true                 }              ],      "sdom": 'tc<"clear">lfrtip',       "bjqueryui":true,     "spaginationtype": "full_numbers",     "processing": true,       }); 

my html code:

</tbody> <tfoot>     <tr>         <th>name</th>         <th>address</th>         <th>age</th>                 </tr> </tfoot>     

many ;-)

please ensure have included 'columnfilter.js' in html , need follow table structure thead , tbody below make datatable plugins working

<table id="escapetbale">     <thead>        <tr>         <th>name</th>         <th>address</th>         <th>age</th>                   </tr>     </thead>     <tbody>       <tr>         <td>name</td>         <td>address</td>         <td>age</td>                   </tr>     </tbody>   </table> 

also check function name datatable starts small d , not caps d. may not matter much


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -