0

I need to do a local search visible text on a single simple html page. Users can simply use Ctrl+F to do that, but I would like to add a search box on the page to do the search instead. I thought of a couple ways to do this:

1- By forcing the browser's Find tool when a button on the page is clicked.

2- By a javascript/Jquery plugin that do LOCAL search on the current page.

I searched for both solutions but was not able to find anything useful. Does anyone here have any suggestions?

Varda Elentári
  • 2,242
  • 6
  • 35
  • 55

1 Answers1

0

You can give a common class name to the tags that contains the display text and perform a search based on that class name. I had attached a link for your reference. you can make use of that funtion and call that function from a button click. Generic Search in HTML Page

Sunil Bharath
  • 206
  • 1
  • 7