jquery - DataTables : filtering different types of filtering on individual columns -


i using datatables display , filter data in .jsp page , works great. have table 6 columns , each set-up drop-down list filter tables content.

this nice , 1 of columns 'description' column , nice filter based on text input , individual column.

is possible have multiple filter types on table? below code use currently.

i've tried searching example of no success. advice appreciated!

$("#example tfoot td.ex-filter").each( function ( ) { var select = $('<select><option value=""></option></select>')     .appendto( $(this).empty() )     .on( 'change', function () {         var val = $(this).val();          table.column( )             .search( val ? '^'+$(this).val()+'$' : val, true, false )             .draw();     } );      table.column( ).data().unique().sort().each( function ( d, j ) {         select.append( '<option value="' + d  + '">' + d + '</option>');     } );      } ); 


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -