How do I find certain text on my web page and make it underlined?
For example, I have some text on my page and I want to find all the words hello
and make them underlined.
My trial code is:
$( "body:contains('hello')" ).css( "text-decoration", "underline" );
But this ends up underlining the whole line instead of just that word.