jQuery DataTables - 删除标签 [英] jQuery DataTables - Remove Label

查看:71
本文介绍了jQuery DataTables - 删除标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从DataTables中的过滤器标签中删除搜索:字样。我曾尝试使用jQuery替换标签dom,但更换时过滤器将无法正常工作。任何人有任何其他解决方案吗?

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">

上述内容由DataTables自动生成

推荐答案

请参阅此链接 http:// datatables。 net / ref#sinfo

将此内容添加到您的代码中 -

add this thing to your code--

"oLanguage": { "sSearch": "" } 

即使你没有得到你想要的,那么你可以在 dataTable论坛上发布相同的问题... dataload团队会帮助你...

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 DataTables - 删除标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆