Skip to main content


A control that allows a user to enter a simple multi-line text.

Textarea control

Related sample: Form. All DhxForm Inputs

Related sample: Form. Textareas

Adding Textarea#

You can easily add a Textarea control during initialization of a form:

var form = new dhx.Form("form_container", {    rows: [        {            type: "textarea",            name:"textarea",            label: "textarea",            labelWidth: "70px",            value: "Some nice text",            width:400        }    ]});


View the full list of configuration properties of the Textarea control.

Working with Textarea#

You can manipulate a Textarea control by using methods or events of the object returned by the getItem() method.

For example, you can get the value of the control:

var value = form.getItem("textarea").getValue();


Check the full list of methods of the Textarea control.


Check the full list of events of the Textarea control.