Hidden TextArea

26

In html for textbox it can be hidden by using <input type="hidden" name="hide"/> but for TextArea if I want to hide how should I use?

Anyone help me please,

Thanks,

This question is tagged with html css

~ Asked on 2012-09-07 07:53:02

The Best Answer is


57

Set CSS display to none for textarea

<textarea name="hide" style="display:none;"></textarea>

~ Answered on 2012-09-07 07:53:59


23

An <input type=hidden> element is not a hidden input box. It is simply a form field that has a value set via markup or via scripting, not via user input. You can use it for multi-line data too, e.g.

<input type=hidden name=stuff value=
"Hello
world, how
are you?">

If the value contains the Ascii quotation mark ("), then, as for any HTML attribute, you need to use Ascii apostrophes (') as attribute value delimites or escape the quote as &quot;, e.g.

<input type=hidden name=stuff value="A &quot;funny&quot; example">

~ Answered on 2012-09-07 08:01:52


Most Viewed Questions: