jQuery 数据表 - 删除标签 [英] jQuery DataTables - Remove Label
问题描述
我正在尝试从 DataTables 的过滤器标签中删除搜索:"字样.我曾尝试使用 jQuery 替换标签 dom,但替换后过滤器将不起作用.有人有其他解决方案吗?
看来每个人都想要代码:
<div id="table-staff_length" class="dataTables_length"><div id="table-staff_filter" class="dataTables_filter"><标签>搜索:<输入类型=文本">标签><table id="table-staff" cellpacing="0" cellpadding="0"><div id="table-staff_info" class="dataTables_info">显示 3 个条目中的 1 到 3 个
<div id="table-staff_paginate" class="dataTables_paginate paging_full_numbers">
以上是DataTables自动生成的
参考此链接 http://datatables.net/ref#sinfo
将此东西添加到您的代码中--
"oLanguage": { "sSearch": "" }
即使你没有得到你想要的,你也可以简单地在dataTable论坛上发布同样的问题...数据加载团队将为您提供帮助...
希望能帮到你..
I'm trying to remove the words "Search:" from the filter label in DataTables. I have tried to use jQuery to replace the label dom but when replaced the filter will not work. Any one have any other solutions?
Well seems everybody wants code:
<div id="table-staff_wrapper" class="dataTables_wrapper">
<div id="table-staff_length" class="dataTables_length">
<div id="table-staff_filter" class="dataTables_filter">
<label>
Search:
<input type="text">
</label>
</div>
<table id="table-staff" cellspacing="0" cellpadding="0">
<div id="table-staff_info" class="dataTables_info">Showing 1 to 3 of 3 entries</div>
<div id="table-staff_paginate" class="dataTables_paginate paging_full_numbers">
the above is auto generated by DataTables
refer this link http://datatables.net/ref#sinfo
add this thing to your code--
"oLanguage": { "sSearch": "" }
even if you don't get what you wished then you can simply post the same question on dataTable forum...dataload team will assist you...
Hope it will help you..
这篇关于jQuery 数据表 - 删除标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!