jquery - 如何将选择框放在 jquery 数据表内的列中?
问题描述
在下面的数据表中,我想将选择框放入“Durum”列。我该怎么做以及如何获得我选择的选项值?我想在我的数据表中使用一个选择框。谢谢你的帮助。
$(document).ready(function() {
$("#FirmaTable").show();
table = $("#FirmaTable").DataTable({
dom: 'Bfrtip',
buttons: ['excel', 'print'],
lengthChange: false,
searching: false,
paging: false,
"ajax": {
"url": "/Raporlama/DataVeri",
"type": "GET",
"datatype": "json"
},
"columns": [
{
"data": "Kullanici"
},
{
"data": "VerildigiTarih"
},
{
"data": "EkBilgi"
},
{
"data": "KargoBilgisi"
},
{
"data": "Firma"
},
{
"data": "Adres"
},
{
"data": "AdresOpsiyonlu"
},
{
"data": "TeslimEdilen"
},
{
"data": "Durum"
}
]
});
});
<table id="FirmaTable" class="display compact" style="display:none">
<thead>
<tr>
<th>Kullanici</th>
<th>Verildigi Tarih</th>
<th>Ek Bilgi</th>
<th>Kargo Bilgisi</th>
<th>Firma</th>
<th>Adres</th>
<th>Adres Opsiyonlu</th>
<th>Teslim Edilecek Kişi</th>
<th>Durum</th>
</tr>
</thead>
</table>
解决方案
推荐阅读
- react-native - 找不到符号:使用 react-native-navigation 时方法 getPackages()
- textarea - Textarea functions don't work with contenteditable elements that are not textareas
- r - R mtcars dataset, manual transmission
- c++ - C ++中的快速单精度倒数平方根,精度非常低
- java - findViewHolderForAdapterPosition() 返回 null
- apache-poi - Apache POI - 根据列值应用过滤器
- php - Wordpress plugins priority
- unity3d - 使用 Unity 的新实体组件系统
- linux - 在为 gdb 打开套接字之前,pin 进程崩溃
- ios - 使用带有搜索栏的键搜索 Firebase 数据库