jquery - Is there a way to highlight specific words or numbers without inserting a span tag? -


i've got blocks of text various specs in them , want have jquery highlight whatever matches specific pattern without inserting html.

the following kind of text i've got work with.

intel® core™ i7 processor 920 (2.66ghz, 8mb cache, 4.8gt/sec)/ genuine windows® 7 home premium 64bit- english/ 640 gb serial ata non raid (7200 rpm)/ 6gb 1333mhz (3x2gb) tri channel memory/ display not included/ 16x dvd+/- rw optical drive (dvd & cd read , write)/ 1.8gb nvidia® geforce™ gtx260 graphics card/ integrated hda 7.1 dolby digital audio

what i'm hoping jquery can highlight of basic specs without inserting html. maybe working off list of values matching spec format using wildcards neededed?

the css select correct

tag #list div div div+p or give p class rather not.

is kind of thing possible?

if mean "without inserting html" in server side html, no.

but, can achieve wrapping keyword jquery.

take jquery highligth plugin , wrap span keywords, you'll need bunch of css.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -