【发布时间】:2012-10-19 03:13:56
【问题描述】:
在我的html页面中,我有一个texteare,我会写一些内容,我想一些内容可以修改,但有些不能。
<html>
<body>
<div class="text">
<textarea cols="50" rows="4" name="msg_content" id="msg_content" readonly="readonly">
Hi, I am the contents that can be modified.
Hi, the url cannot be modified.
http://www.google.com
</textarea>
</div>
</html>
如您所见,我将 textarea 的属性之一设置为只读,但在这种情况下,无法修改全部内容。
请给我一些建议,提前谢谢。
【问题讨论】: