我正在使用 jquery 資料表,我想在輸入之前洗掉搜索文本標簽,但我沒有使用 jquery 如何洗掉搜索標簽的經驗?請幫助我,謝謝。

jQuery資料表
$(document).ready(function() {
$("#userTable").dataTable({
columnDefs: [{
"defaultContent": "-",
"targets": "_all"
}]
});
//custom format of Search boxes
$('[type=search]').each(function () {
$(this).attr("placeholder", "Search...");
$(this).before('<span ></span>');
});
});
uj5u.com熱心網友回復:
試試這個代碼:
$("#dataTable").DataTable({
language : { search : "" },
});
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/466623.html
