如何过滤html表? [英] How to filter html table?
问题描述
您好我正在试图合并表格过滤,用户可以选择一个作者或名称,并根据名称筛选表格。这个Feed必须基于xml feed。
有没有我可以用的例子?
我当时正在看这个例子 http:// dev .sencha.com / deploy / ext-4.0.2 / examples / grid / xml-grid.html
什么的 http://www.picnet.com.au/resources/tablefilter/demo.htm
如何在表格外添加一个组合框(下拉框)以便根据不同的作者选择不同的名称进行过滤xml
或其他类似的例子
谢谢 / div>
您最好使用诸如 jQuery 之类的JavaScript库,它使您可以使用可用的无数插件。
jqGrid 确实所有这些为你的东西。
看看搜索数据下的rel =nofollow noreferrer>示例。你应该可以用选择
替换 input
。
另外,仍然使用jQuery,但这个问题可能会做你所需要的:从< select>过滤表格使用jQuery输入
Hi I am trying to incorporate Table filtering , where the user can select a author or name and filter the table based on then name . The feed has to be Based on xml feed .
Is there any example that I can use?
I was was looking at this example http://dev.sencha.com/deploy/ext-4.0.2/examples/grid/xml-grid.html
or something http://www.picnet.com.au/resources/tablefilter/demo.htm
How can I add a combo box(dropdown box) outside the table to filter based on various authors selection name the feed i would like to use is xml
Or any other example similar to this
Thanks
You'd be best off using a JavaScript library such as jQuery, which enables you to use the myriad plugins that are available.
jqGrid does all of that kind of stuff for you.
Have a look at the examples here under Live Data Manipulation > Searching Data. You should be able to just replace the input
with a select
.
Alternatively, still with jQuery but this question might do what you need: Filter table from <select> input using jQuery
这篇关于如何过滤html表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!