0
私は、ブートストラップのデータテーブルを使ってテーブルを作成しています。データを検索するときにテーブル内で動作しています。Codegniterを使用してBootstarpデータ型を使用してデータのネストした表データを検索する方法は?
しかし、すべての行にネストした表が作成されています。このネストした表は、特定の行の「顧客を表示」リンクをクリックすると表示されます。
親テーブルから要素を検索すると、親テーブル要素のみが派生します。子テーブル要素も検索する必要があります。
これを行う方法。表の
HTMLコード:
<table class="table table-hover" id="table2">
<thead>
<tr>
<th>ID</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<a href="#" onClick="project_list('<?=$item->bldr_ID;?>',0)">
details
</a>
</td>
</tr>
//Here generate another child table when i click details link (will call "project_list" function using ajax)
// Now want to search element both parent and child elements from parent table search column
</tbody>
</table>