jquery-fastLiveFilter icon indicating copy to clipboard operation
jquery-fastLiveFilter copied to clipboard

Filter a set of tables based on text in a td of each table

Open KarinaLibrary opened this issue 11 years ago • 1 comments

My DOM is a set of tables, each representing a record. I want to filter the tables displayed based on a search for the input text in each td.title element.

<table>
  <tr></tr>
  <tr></tr>
  <tr>
    <td class="title">Lore ipsum</td>
  </tr>
</table>
<table>
  <tr></tr>
  <tr></tr>
  <tr>
    <td class="title">Foobar</td>
  </tr>
</table>
<table>
  <tr></tr>
  <tr></tr>
  <tr>
    <td class="title">Lore ipsum Foobar baz</td>
  </tr>
</table>

Looks like options for fastLiveFilter should allow that but having trouble figuring it out.

KarinaLibrary avatar Jun 01 '14 19:06 KarinaLibrary

I believe you'd pass in the selector option of "td.title" which was added in #18

axelson avatar Sep 09 '14 23:09 axelson