DevExtreme jQuery/JS - Overview
The TextArea is a widget that enables a user to enter and edit a multi-line text.
The following code adds a simple TextArea with a placeholder to your page.
HTML
JavaScript
<div id="textAreaContainer"></div>
$(function() { $("#textAreaContainer").dxTextArea({ placeholder: "Type a text here..." }); });
By default, the TextArea checks the entered text for spelling errors. To disable this feature, assign false to the spellcheck option.
JavaScript
$(function() { $("#textAreaContainer").dxTextArea({ spellcheck: false }); });
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.
JavaScript
$(function() { $("#textAreaContainer").dxTextArea({ value: "The text that should not be edited", readOnly: true }); });
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.