I want to highlight a particular word in a textarea. I know how to do it for the entire division, but don't know how to do it for a specific word.
document.getElementById("labnol").style.backgroundColor = "lightblue";
This is what I have tried to highlight the entire div
.But now want to do it for a specific word.