I’d like to make a small form to perform a select filter on the following table:
<table id="example">
<thead>
<tr>
<th>Name</th>
<th>Surname</th>
</tr>
</thead>
<tbody>
<tr>
<td>Michael</td>
<td>Jordan</td>
</tr>
<tr>
<td>Michael</td>
<td>Jackson</td>
</tr>
<tr>
<td>Bruno</td>
<td>Mars</td>
</tr>
</tfoot>
</table>
How can I do it?
It should be something similar to this example http://www.datatables.net/release-datatables/examples/api/multi_filter_select.html but both of the fields should NOT be in the foot of the table but in another part of the page.
Here is one solution. It generates
selectelements automatically.DEMO: http://jsfiddle.net/xXj5F/