Text underlined using a custom javascript function

Hello.
I need to underline a text using a custom javascript function and I would not like to use jQuery because in this case I would need to add jQuery to the project and I want to avoid this.
Any ideas?
Thanks!

This might help:
https://www.w3schools.com/jsref/prop_style_textdecoration.asp

2 Likes

It works perfectly!
Thanks!