2011-08-13 32 views

回答

7
<textarea type="text" name="message"rows="10" cols="10">Hi there</textarea> 

不要使用「值」屬性,將文本中的元素(即沒有「值」屬性爲這個HTML元素,AFAICR)

+0

我可以在那裏設置一個變量。我希望變量的內容顯示...謝謝 –

+0

什麼樣的變量? PHP - 是的,很簡單。 JS - 是的,但不太容易(如果變量正在改變) – Richard

0
<textarea type="text" name="message"rows="10" cols="10">hi there</textarea> 
0

textarea標籤之間添加文字如下:

<textarea>My placeholder Value</textarea>