Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I lost a JavaScript-based, sortable-table script that had a unique feature of a search box. The search box that made non-relevant rows disappear when a user typed a word.

Any idea where I can find a similar script to this? Again, it is all JavaScript based.

share|improve this question

1 Answer 1

The best and easiest thing to use is the jQuery Datatable plugin. Of course, at this very second, the website is down: http://www.datatables.net/

Edit: The site is back up now. Check it out for some really nice demos. The rest of my comment is below, as it still provides some good info.

To see what it's all about in the mean time, check out: http://www.codeproject.com/Articles/194916/Enhancing-HTML-tables-using-a-JQuery-DataTables-pl

There's also a working demo, with the search field in the upper right corner of the table, here: http://jquery-datatables-column-filter.googlecode.com/svn/trunk/index.html

That site above is actually for a plugin that adds a column filter as well, so you can search only a column. The default search for the Datatable plugin searches all fields in a row.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.