I am trying to do a text-search using a checkbox. For example, if the person selects the check box it will display the word/letter the user has entered into the search box(this word/letter will be highlighted). Say I enter "the" it will search for all "the" in the paragraph and will highlight all the "the". I already got that first part down what I am not understanding is how to make the checkbox connect with the text-search form. So when the user selects the checkbox "the" will display or whatever word/letter they enter into the search box.
I was thinking of using the if statement...
You can use something like this:
And in the CSS you need to have:
Snippet
Maybe something like the above.