highlite text parts with jquery, best practice

Posted by helle on Stack Overflow See other posts from Stack Overflow or by helle
Published on 2010-06-09T13:41:35Z Indexed on 2010/06/09 15:12 UTC
Read the original article Hit count: 203

Filed under:
|
|

Hey guys,

i have a list of items containig names. then i have a eventlistener, which ckecks for keypress event. if the user types i.g. an A all names starting with an A should be viewed with the A bold. so all starting As should be bold.

what is the best way using jquery to highlite only a part of a string?

thanks for your help

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery