live highlight a word(s) with jQuery
问题 I want to live highlight words with jQuery. I use a live keyup event to trigger the highlighting, so that the highlighting changes upon entering words(using a input text field for this) I have found a piece of code which works fine but this code doesn't works with the live keyup event, so it wraps the first letter and stops there. Here is my HTML: <input type="text" id="input" name="input"/> <div id="content-block"><p>lorem ip sum </p></div> Here is my JS: $('#input').live('keyup', function()