頭の中にいくつかのスクリプトを含むHTMLページがあり、ID = exampleのDataTableと、ボタンのid = "btnFilter"というデータを持っていますユーザーが他の人の中に入力したものに基づいてDataTable "input texts tags" 私はインターネット上で見つけた多くのバリエーションを試しましたが、私が望むことができるものは何もできません。入力テキストを使用してDataTableをフィルタリングする
<table id="filterLog" class="table table-striped">
<thead>
<h4>Table</h4>
</thead>
<tfoot>
<th>
</th>
</tfoot>
<tbody>
<tr>
<td><label class="input-group">From:</label></td>
<td><label class="input-group">To:</label></td>
<td><label class="input-group">Created:</label></td>
<td><label class="input-group">Comp:</label></td>
</tr>
</tbody>
<tr id="linhasFiltro">
<td><input class="form-control" type="date" id="date1" /></td>
<td><input class="form-control" type="date" id="date2" /></td>
<td><input class="form-control" type="text" id="creator" maxlength="15" /></td>
<td><input class="form-control" type="text" id="cLog" maxlength="10"/></td>
</tr>
<tr>
<td colspan="4"><label class="input-group">Type:</label></td>
</tr>
<tr>
<td colspan="1">
<select id="tipoLog" class="form-control">
<option>Error</option>
<option>Test</option>
<option>Info</option>
</select>
</td>
<td><input type="button" value="Filter" id="btnFilter" class="btn btn-primary" /> <input type="button" id="btnExport" value="Exportar" class="btn btn-primary" /></td>
</tr>
<tr class="border:0px;">
<td colspan="6" id="consiError" ></td>
</tr>
</table>
そして、私が欲しいのは、入力されたID内のときに、ユーザータイプである:ここで
は、ユーザーが彼がフィルタリングしたいテキストを入力します、私は入力とラベルのタグを持っている私のHTMLであり、 = "cLog"をクリックし、btnFiltrarをクリックすると、DataTableは列に相当するテキストが同じ行をすべて表示する必要があります。
のTHXみんな