我正在嘗試為我的每一列顯示過濾器下拉列表。某些列正確顯示唯一值。但是,我的過濾器下拉列表中有 3 個無法正確顯示。在這 3 列中,我在其中包含了隱藏輸入字段,這<td>是必要的,因為我使用 JS 來檢查隱藏輸入中的數據值是否在特定范圍內。會<td>根據條件改變顏色。然而,這導致我的 3 個過濾器下拉菜單顯示隱藏輸入的值,這不是我所希望的。無論如何可以幫忙嗎?下面是我的代碼。PHP代碼: <table id="pic_table" class="table" class="display"> <thead> <tr> <th class="filterhead"></th> <th class="filterhead"></th> <th class="filterhead"></th> <th class="filterhead"></th> <th class="filterhead"></th> <th class="filterhead"></th> <th class="filterhead"></th> </tr> <tr> <th>Serial</th> <th>Name</th> <th>Project Reference</th> <th>Basic Profile</th> <th>Employment Permits</th> <th>Last Updated</th> <th>Status</th> </tr> </thead> <tbody> ?></tbody></table>錯誤截圖:
1 回答

蝴蝶不菲
TA貢獻1810條經驗 獲得超4個贊
根據您的建議,我通過將隱藏的輸入字段替換為<td>. 下面是我的簡單解決方案。
echo "<td class='prbk' data-id='".$row[3]."'>".$row[3]."%</td>";
echo "<td class='bpbk' data-id='".$row[4]."'>".$row[4]."%</td>";
echo "<td class='epbk' data-id='".$row[5]."'>".$row[5]."%</td>";
- 1 回答
- 0 關注
- 114 瀏覽
添加回答
舉報
0/150
提交
取消