Highlighting search words like Chrome with jQuery
- by ilkin
I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this:
  $('myButton').click(function() {
  
  $('body').highlight($('#myInputText').val());
  
  });
But I wonder how can I do the Chrome like highlighting, I mean highlight the letters whenever I type in some letter in textbox without submitting. I think maybe use a keyup event... Any ideas?