Hi, guys.
Here's the deal: Having an input-type-text and a text wrapped in a div, I want the text written in the text input to appear highlighted in the div. Firefox search like. "Highlighted" as in changing the background color with CSS or some other highlighting method.
<input type="text">
<div>
Some text
</div>
My first attempt was using JavaScript and wrap the matched text using a class within a <span> tag. Not much success there. Had some troubles with key codes. Not to mention my abilities using js.
So, I was wondering if I can make something similar using server-side scripting.
Can it be done with some odd combination of XMLHttpRequest, onKeyUp and PHP?
PS: I want to make something similar to RegExr from the guys at gskinner.
Thanks.