开发者

html: how can I show text in html "textarea" ie "value" setting?

开发者 https://www.devze.com 2023-03-27 18:31 出处:网络
I want to do the f开发者_C百科ollowing with \"value\": <textarea type=\"text\" name=\"message\"rows=\"10\" cols=\"10\" value=\"hi there\"></textarea></p>

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>

0

精彩评论

暂无评论...
验证码 换一张
取 消