DanMad DanMad - 1 year ago 67
HTML Question

Line break in input value

I am trying to add a couple of line breaks in an

&#13; &#10;
aren't working. Everything is still on the one line.

I haven't found an answer to this question amongst other questions that solves my problem. Thanks in advance.

Answer Source

I don't actually think you can have line breaks for those types of form elements. You may have to use a <textarea> tag which allows for literal line breaks:

<textarea id="multiliner" name="multiliner">line1

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download