0

I am trying to put some more data into value part of an input. but I want those strings to have line break.

<input type="text" value="text break text"/>

I want the value to be shown:

text 
text

how can I do this? I am trying to add this with template engine of django, but django doesnot have it.

appreciate any help

doniyor
  • 36,596
  • 57
  • 175
  • 260

1 Answers1

2

I guess, you need to use <textarea /> instead of <input type="text" /> field. To break the lines, just use the normal line break like this:

<textarea>
    Line 1
    Line 2
</textarea>

You may find more about <textarea/> in HTML 4.01 specification.

Aleksei Zyrianov
  • 2,294
  • 1
  • 24
  • 32