<table id="table" class="table table-bordered table-hover dataTable" style="width:100%">
<thead>
<tr>
<th>RM Code</th>
<th style="width:10%">Wh</th>
<th style="width:10%">Quantity
<br>Recipe</th>
</tr>
</thead>
<tbody>
<tr class="details">
<td>
<input type="text" name="code[]" placeholder="Enter your Name" class="form-control name_list" />
</td>
<td>
<input type="text" name="wh[]" placeholder="Enter your Name" class="form-control name_list" />
</td>
<td>
<input type="text" name="qty[]" placeholder="Enter your Name" class="form-control name_list" />
</td>
</tr>
</tbody>
</table>
如何从上面的数据表中获取数量值。我试过了
$('#table tbody').on('change', 'td', function(e) {
alert(dtable.cell(this).data());
});
我仍然无法从我的输入字段中获得价值..
慕妹3146593
慕虎7371278