All docs
V19.1
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
19.1
18.2
18.1
17.2
A newer version of this page is available. Switch to the current version.

DevExtreme jQuery - Overview

The TextArea is a widget that enables a user to enter and edit a multi-line text.

View Demo

The following code adds a simple TextArea with a placeholder to your page.

jQuery
HTML
JavaScript
<div id="textAreaContainer"></div>
$(function() {
    $("#textAreaContainer").dxTextArea({
        placeholder: "Type a text here..."
    });
});
Angular
HTML
TypeScript
<dx-text-area
    placeholder="Type a text here...">
</dx-text-area>
import { DxTextAreaModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
     imports: [
         // ...
         DxTextAreaModule
     ],
     // ...
 })

By default, the TextArea checks the entered text for spelling errors. To disable this feature, assign false to the spellcheck option.

jQuery
JavaScript
$(function() {
    $("#textAreaContainer").dxTextArea({
        spellcheck: false
    });
});
Angular
HTML
TypeScript
<dx-text-area
    [spellcheck]="false">
</dx-text-area>
import { DxTextAreaModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
     imports: [
         // ...
         DxTextAreaModule
     ],
     // ...
 })

If an end user should not be able to edit the text in the TextArea, assign true to the readOnly option. In this case, make sure to set the value option too.

jQuery
JavaScript
$(function() {
    $("#textAreaContainer").dxTextArea({
        value: "The text that should not be edited",
        readOnly: true
    });
});
Angular
HTML
TypeScript
<dx-text-area
    value="The text that should not be edited"
    [readOnly]="true">
</dx-text-area>
import { DxTextAreaModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
     imports: [
         // ...
         DxTextAreaModule
     ],
     // ...
 })
See Also