我有一个带有搜索选项的数据表。但我想用过滤器更改标签名称。我从浏览器控制台粘贴了以下代码,但如何将标签名称从“搜索”更改为“过滤器”?
<div class="dataTables_filter" id="Register_filter">
<label>Search: <input type="text">
</label>
</div>
最佳答案
假设您使用 Datatables jquery 插件,您需要这个:
$('#example').dataTable( {
"language": {
"search": "Filter records:"
}
} );
具体来说,将语言部分添加到您的表启动中。
关于jquery - 在jquery中更改没有id的标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42028187/