Home > Backend Development > PHP Tutorial > 如何给textarea中内容加上加上超链接

如何给textarea中内容加上加上超链接

WBOY
Release: 2016-06-23 14:39:15
Original
1489 people have browsed it

各位大神,小弟有一个textarea区域,区域中显示上传文件的地址,目前该地址是静态的,不具有超链接功能,见附件 ,我想给这个地址加上超链接(即textarea中显示的内容不变,然后再加上超链接功能),请问下如何实现,我的代码是">,谢谢!


回复讨论(解决方案)

直接对value值加上超链接即可,重写value值

大神具体点啊

<input type="textarea" onclick="location.href='http://www.baidu.com'"  value="http://www.baidu.com">
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template