Linked Questions

-1 votes
2 answers
657 views

Is there any way such that when user enters any value in search box then it's color is changed . Like this : User enters : laptop Then laptop color changes from the class="deviceNameCardHead"...
Rana Daggubati's user avatar
0 votes
1 answer
267 views

I want to have text that when click-dragged over, highlights the text and stores the highlighted text in a variable. I'm not sure where I would start with this, from my research it looks like it ...
Anthoney Kalasho's user avatar
-2 votes
1 answer
201 views

I have a searchbox where you can search for words and pages will display with the searched-for word in the description of the page(meaning if the word you searched for is in the description of the ...
Aries Azad's user avatar
-3 votes
3 answers
191 views

Here is the fiddle where i have search and working good but i want to change the existing code for getting letters background highlighted not total word. only letters background highlight........ ...
Koteswara Rao's user avatar
0 votes
0 answers
88 views

I'm trying to highlight text within an HTML string while ignoring any HTML tags inside the text. However, my current approach sometimes wraps only part of the text and breaks the HTML structure. What ...
Saadi's user avatar
  • 1,294
0 votes
1 answer
84 views

Not a dupe... Non of mentioned work.. Trying to highlight a word with a google extension. Running this as a content script, but it doesn't seem to be a working solution... What have I missed? var ...
Jessica Ray's user avatar
108 votes
13 answers
200k views

I basically need to highlight a particular word in a block of text. For example, pretend I wanted to highlight the word "dolor" in this text: <p> Lorem ipsum dolor sit amet, ...
nickf's user avatar
  • 548k
313 votes
1 answer
83k views

Today I noticed that some searches on Google gave me links to results with apparent instructions to highlight text. Google brought me to What is the maximum size of a zip file on Windows 10 Pro 64... ...
palsch's user avatar
  • 7,583
30 votes
9 answers
46k views

I'm trying to find a way with javascript to highlight the text the user selects when they click some odd highlight button (as in <span style="background-color:yellow">highlighted text</span&...
foobar's user avatar
  • 809
11 votes
5 answers
6k views

Is it possible to highlight text in an HTML document using without wrapping it with <span> or any other tag for that matter? For example, in the HTML code <p>The quick fox</p> I ...
Sleepster's user avatar
  • 1,230
4 votes
5 answers
22k views

I have made a function which highlights matching words in a div. but if there are two identical words separated by a different word then only the first word is highlight. so for example if the search ...
user2014429's user avatar
  • 2,617
6 votes
2 answers
16k views

How to retrieve the position of selected text by calculating it's offset immediate after body tag? For Example consider the following html, <body> <div>hi</div> <div>dude!<...
TomNJerry's user avatar
  • 2,659
6 votes
2 answers
15k views

I'm trying to create a script in JS that highlights certain text as it's typed by the user (sort of like the "Test String" box from https://regex101.com/), but can't seem to change the text ...
apcsawasalie's user avatar
3 votes
5 answers
7k views

I am looking for some solution that help to search term from html string with highlight feature. I can do this by removing html content from string. But then issue is I will not able to see it ...
Kaushik Thanki's user avatar
3 votes
4 answers
5k views

I have a string of text here that will be dynamically generated to be one of the following: <h1 id="headline">"Get your FREE toothbrush!"</h1> OR <h1 id="...
Marc R's user avatar
  • 31

15 30 50 per page
1
2 3 4 5