Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes Search for a text in a table. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Search for a text in a table." Watch "Search for a text in a table." New topic
Author

Search for a text in a table.

Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Hi all,
I have a Table, Text field and a "Search " button in a HTML page. Can any one throw some light on how to implement a search functionality in this table. When some text is typed in the text field & the search button is clicked,I need to find this text in the table and highlight it.


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Take a look at the code to this page: http://www.nsftools.com/misc/SearchAndHighlight.htm

Eric
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Eric,
Thanks for this URL. I want to narrow down the search only in a table.
 
 
subject: Search for a text in a table.
 
Similar Threads
Populating values from iframe to parent page - Struts 2
Text in JtextField is not selecting.
textfields value
Book GUI - URLyBird
ListOfValues Dialog