Linked Questions

4 votes
3 answers
2k views

i am not sure the best way to go about this. here is the problem. i have a menu (list items) that has an irregular pattern of display. i cant alter the html directly as it is being spit out of a cms. ...
liz's user avatar
  • 483
0 votes
1 answer
5k views

Possible Duplicate: Highlight a word with jQuery I want to highlight certain words in html <body> tag, but I want to avoid highlighting those which are within <a> tag. How can this be ...
Shades88's user avatar
  • 8,428
0 votes
1 answer
4k views

I'm trying to implement a search for a table, I found an answer on the web and I tried it out, it works fine! now I want to highlight (change text colour: text colour class = blue-text) that search ...
rakcode's user avatar
  • 2,326
-4 votes
1 answer
3k views

i have a text like this: <p>Hi this is a text and i wan't to add a class to some words which are here</p> And I wan't to add class ".red" to this words: "some","here","add", for example. ...
mrpinkman's user avatar
  • 221
0 votes
2 answers
1k views

I would like to know how to highlight in yellow only the plus sign (+) of a string using jQuery. For example: Text: Lorem ipsum dolor sit amet, consectetur adipiscing elit +
Daniel's user avatar
  • 63
0 votes
0 answers
481 views

I have a HTML page which is structured in two parts (div), a header and a container part in which some text is displayed. The text in the container part is large, and it is scrollable. I need to get ...
georgiana_e's user avatar
  • 1,899
-1 votes
2 answers
59 views

I am using jQuery to find text in an html and highlight all occurrences of a text, replacing them for a span tag. <div>This a sample paragraph. Sample is it?</div> I am using the ...
Diego Rueda's user avatar
  • 2,566
2 votes
0 answers
34 views

I am trying to replace all occurrences of a keyword inside an html document except those that are found inside a button, anchor or image tag. I have created a fiddle with the code that I am working ...
Samuel Shelby's user avatar
0 votes
0 answers
28 views

Currently try to highlight the "searched term" found in the "table" by putting the "results found" into a <span>. I get an error of "unexpected string" and with no results. Can some take a look ...
Maki's user avatar
  • 647
165 votes
28 answers
436k views

Can someone help me with a javascript function that can highlight text on a web page. And the requirement is to - highlight only once, not like highlight all occurrences of the text as we do in case ...
Ankit's user avatar
  • 4,664
36 votes
21 answers
154k views

I want to do a live search through the table rows, using jQuery, the "live" word is the key, because I want to type the keywords in the text input, on the same site and I'd like jQuery to ...
Sapp's user avatar
  • 654
28 votes
14 answers
56k views

Suppose I have a container: <div id="container"> This is a red apple </div> How to color a word "red" with red color? Something like (pseudocode) #container:[word="red"]{ color:red; }...
nicael's user avatar
  • 19.1k
7 votes
3 answers
12k views

I'm trying to highlight all matching word inside the body but not words inside any html tag. For example the keyword given is 'para'. Here's the paragraph: <p class="para"> Example of paragraph....
Iswanto Arif's user avatar
14 votes
1 answer
19k views

I'm performing some form of validation on a freely typed input text field in HTML. Is there a way to highlight certain words or phrases (based on certain criteria) in a input text field using JQuery ...
user6123723's user avatar
  • 11.3k
5 votes
6 answers
12k views

I have some span with some words in it, like <span id="phrase">Here are some words</span> I need to color all the 'e' characters red. I think of taking the span.innerText ...
Dmitry Samoylov's user avatar

15 30 50 per page
1
2 3 4 5