亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

數據表過濾器下拉列表未正確顯示

數據表過濾器下拉列表未正確顯示

PHP
不負相思意 2023-09-15 21:45:18
我正在嘗試為我的每一列顯示過濾器下拉列表。某些列正確顯示唯一值。但是,我的過濾器下拉列表中有 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>";  


查看完整回答
反對 回復 2023-09-15
  • 1 回答
  • 0 關注
  • 114 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號