在我的html頁面中我有一個texteare,我會寫一些內容給它,我想要一些內容可以修改但是有些不能。如何使內容的某些部分無法在html textarea中編輯
<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的歡迎使用屬性之一是隻讀的,但在這種情況下,整個內容不能被修改。
可否請給我一些建議,在此先感謝。
感謝米希爾,我會盡力 – diligent