How to wrap words in a normal html text box?

I have this text box

<p>Event Data :<input  id="data" type="text" wrap="true" value="{{data}}" 
            style="width: 757px; height: 170px" />
    </p>   

I want it to be multi-line I cannot use asp: textbox is it possible to use the exact text block and make it multi-line or

make text in go textbox word wrap

+3
source share
4 answers

How about this:

<p>Event Data:
<textarea id="data" style="width: 757px; height: 170px" rows="10" cols="80">{{data}}</textarea>
</p>

The tip of the cap (and +1) in Stewart to indicate what rowsand colsare required attributes for textarea.

+5
source
<p>Event Data:
<textarea id="data" rows="10" cols="80">{{data}}</textarea>
</p>

- . , . CSS, em %, px.

+3

, , , white-space: pre; textarea, , {{data}}

+1

<textarea> wrap. , HTML, , , "", "" "" . IE. Firefox, , "cols" .

0

Source: https://habr.com/ru/post/1724285/


All Articles