html: how can I show text in html "textarea" ie "value" setting?
I want to do the f开发者_C百科ollowing with "value":
<textarea type="text" name="message"rows="10" cols="10" value="hi there"></textarea></p>
thx
<textarea type="text" name="message"rows="10" cols="10">Hi there</textarea>
Don't use the 'value' attribute, put the text in the element (i.e. there is no 'value' attribute for this HTML element, AFAICR)
<textarea type="text" name="message"rows="10" cols="10">hi there</textarea>
Add text between the textarea
tags as follows:
<textarea>My placeholder Value</textarea>
精彩评论