I want to color all the words that I choose in my input from my table rows. the rows table contains a string of paragraphs
my input (word1, word2,…wordn)
var word = 'reference';
var orgTitle = row["Title"];
var org = row["Abstract"];
var result =org.replace(new RegExp(word, "g"),'<span style="color: red;">'+word+'</span>');
result;
I have this script to color a specific words from row table as string TEXT. but ONLY one WORDS as inputs.
Please Need your hepls.
Thank you
@Paul_Wilkins i have some problem with this script I have string array of word and I want to use their value as an input to color my paragraph could you help for that this is the LINK : https://jsfiddle.net/MokiNex/wncafj5f/44/ Thank you
I have some problem with this script I have array of words as a string and I want to use their value as an input to color my paragraph could someone help for that this is the LINK https://:jsfiddle.net/MokiNex/wncafj5f/38
I want my result same as this Link
This my script to Highlight a specific word from text string my only problem is when I want to highlight three sequence words it just the 1st word highlighted then 2nd still without highlight then the third one it is highlighted