Every major modern browser includes search functionality already (CTRL-F or even / in Firefox). The one that comes with Google Chrome is particularly nice (with highlighting of search terms.)
If you want someone, when they are viewing your form, to be able to search just the text in that particular page, and you don't want them to have to rely on browser functionality, you can use jQuery.
I found this online:
https://www.nothingbutsharepoint.com/sites/eusp/Pages/search-on-this-page-using-jquery.aspx
The demo page looks pretty nice:
http://blog.mastykarz.nl/samples/jquery/searchOnThisPage.html
Let me know if that's along the lines of what you're looking for.
Searching within the text of a form, from anywhere in your site (for example, if you have a term like Exclusions that occurs only within a form, not a page or post), you have a completely different problem on your hands.
Posted 13 years ago on Saturday July 30, 2011 |
Permalink