在我的 html 页面中,我有一个 textaere,我会写一些内容给它,我想一些内容可以修改,但有些不能。
<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 的属性之一设置为只读,但在这种情况下,无法修改整个内容。
能否请您给我一些建议,提前谢谢。