Filter large amounts of data in a table w/ jQuery
Posted
by Bry4n
on Stack Overflow
See other posts from Stack Overflow
or by Bry4n
Published on 2010-04-23T14:43:55Z
Indexed on
2010/04/23
18:33 UTC
Read the original article
Hit count: 290
I work for a transit agency and I have large amounts of data (mostly times), and I need a way to filter the data using two textboxes (To and From).
I found jQuery quick search, but it seems to only work with one textbox.
If anyone has any ideas via jQuery or some other client side library, that would be fantastic.
Ideal example:
To: [Textbox] From:[Textbox]
<table>
<tr>
<td>69th street</td><td>5:00pm</td><td>5:06pm</td><td>5:10pm</td><td>5:20pm</td>
</tr>
<tr>
<td>Millbourne</td><td>5:09pm</td><td>5:15pm</td><td>5:20pm</td><td>5:25pm</td>
</tr>
<tr>
<td>Spring Garden</td><td>6:00pm</td><td>6:15pm</td><td>6:20pm</td><td>6:25pm</td>
</tr>
</table>
So If I start typing in one of the stations in the To: textbox it either displays dynamically like the quick search or i have to press a button (either or) and then in the from: textbox. Lastly it shows me to: station and all its times on the left and the from: station and all its times on the right.
© Stack Overflow or respective owner