multi search not working - newby question

multi search not working - newby question

jokkemoosejokkemoose Posts: 1Questions: 1Answers: 0

Hi,
Playing with the multi search option on datatable, the normal search is working, but the searches on top of the page above the table are not working if I enter somethig.

I build the table like this:
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css">
</head>
<body>

followed by thead , tbody, .. and then:


$('#example thead tr#filterrow th').each( function () { var title = $('#example thead th').eq( $(this).index() ).text(); $(this).html( '' ); } ); // DataTable var table = $('#example').DataTable(); // Apply the filter $("#example thead input").on( 'keyup change', function () { table .column( $(this).parent().index()+':visible' ) .search( this.value ) .draw(); } ); function stopPropagation(evt) { if (evt.stopPropagation !== undefined) { evt.stopPropagation(); } else { evt.cancelBubble = true; } }

</body>
</html>

but only the top page search works..

Thanks for advice!

J.

This discussion has been closed.