change color of a word in div value using javascript

Posted by San82moon on Stack Overflow See other posts from Stack Overflow or by San82moon
Published on 2010-05-28T07:07:40Z Indexed on 2010/05/28 7:11 UTC
Read the original article Hit count: 205

Filed under:
|

Hi,

I have a <div id="one">this is a sentence</div>

I have a textbox for userinput, if the user types a word which matches any word in div, eg: if user types "this", which is also there in div value, the background color of "this" should be changed, using Javascript

Thanks Sunny.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about css