In addition, could you also set the table head in ? It is currently listed in the .
Ok, I added thead and tbody tags. I'm not sure what that did though. It looks the same in chrome.
Hi,
I wanted a way to search addresses. This snippet will give the realtime search functionality. That's why I wanted thead separated, otherwise when filtering the header disappears as well It'll work with Tampermonkey - added as a gist here as well.
// Search snippet, thanks to dfsq at StackOverflow - http://stackoverflow.com/questions/9127498/how-to-perform-a-real-time-search-and-filter-on-a-html-table var $rows = $('table tbody tr');
$('#search').keyup(function() { var val = $.trim($(this).val()).replace(/ +/g, ' ').toLowerCase();
$rows.show().filter(function() { var text = $(this).text().replace(/\s+/g, ' ').toLowerCase(); return !~text.indexOf(val); }).hide(); }); // End of realtime address search