I have in my code this
<span class="link-hello">HELLO</span>
How can I using Javascript add a href link to word HELLO?
use <a><a/>
tag instead of <span></span>
tag
<a href="your_link" class="link-hello">Hello</a>
Its not possible because this code is inside CMS systém in field which does not support a href tag... it support only span tag with class... thats why I am asking for help how can I achieve using JS to add a href
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.