开发者

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>

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜