私は、 'filter'というidを持つテーブルを使ってテキストボックスを作成しています。入力タイプ - 各tfootに挿入するテキスト
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
<tr id="filter">
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
</table>
私はJavaScriptで次のコードを書いた:
$('#example thead tr#filter th').each(function() {
var title = $('#example thead th').eq($(this).index()).text();
$(this).html('<input type="text" placeholder="Search '+title+'" />');
});
をしかし、それは私が間違ってそれをコーディングまたはmistake.Iがそれを把握することはできません行わtextbox.Amを示していません。
をこのリンクを挿入することによって、Outlookからメールを送信することができます。 –
あなたは私のデモを見ることができます@shreyagupta –
私が書いた同じコード@Ivin Raj –