Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

351
Views
Highlight text in HTML using javascript (or jquery) without modifying page text

I am familiar with a bunch of libraries that can highlight text in a page using HTML. For example by inserting a span that has a class to a particular word that needs to be highlighted. What I want to do is to highlight text without modifying the HTML part of the text where the word is.

I thought that it can be done until I was checking Grammarly on Medium and I saw that words were highlighted but when inspected the code, the text did not had anything particular that would highlight the word. I took a screenshot that shows what I am talking about. The textarea is unmodified but words are clearly highlighted.

What I am asking is, is there a library in jquery or javascript that does this?

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!