0
我想知道是否可以通過DataTables.net篩選包含下拉列表的列。因此,例如:在DataTables.net中篩選包含下拉列表的列
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Item requested</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Item requested</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>System Architect</td>
<td>Edinburgh</td>
<td>
<select id="ItemRequested" name="ItemRequested">
<option value="FO">Foo</option>
<option value="BA">Bar</option>
<option selected="selected" value="WI">Widget</option>
</select>
</td>
</tr>
<tr>
<td>Joe Bloggs</td>
<td>Software Engineer</td>
<td>London</td>
<td>
<select id="ItemRequested" name="ItemRequested">
<option value="FO">Foo</option>
<option selected="selected" value="BA">Bar</option>
<option value="WI">Widget</option>
</select>
</td>
</tr>
</tbody>
我需要能夠搜索到爲每個下拉列表選擇的值。
任何幫助將不勝感激。
謝謝。
Mayank,我不認爲提出的解決方案是迪茲想要的。作爲用戶,我希望能夠根據下拉列中的選定值過濾行。我想使用一個過濾器框來對所有列進行過濾。此外,更重要的一列將有選擇框,而不僅僅是文本。 – java1977