value

Gets or sets the value of the widget.

Important: This method does not trigger the change event. This could affect MVVM value binding. The model bound to the widget will not be updated. You can overcome this behavior triggering the change event manually using trigger("change") method.

Important: This method does not trigger the focusout event of the textarea. This could affect the floating label functionality. You can overcome this behavior by manually invoking the refresh method of the Floating Label: $("#textarea").data("kendoTextArea").floatingLabel.refresh();

Parameters

value String

The value to set.

Returns

String the value of the widget.

Example - trigger the change event after setting the value

<textarea id="description"></textarea>
<script>
    var textarea = $("#description").kendoTextArea().data('kendoTextArea');

    textarea.value("new value");
    textarea.trigger("change");
</script>

Example - set and get the value of the widget

<textarea id="description"></textarea>
<script>
    var textarea = $("#description").kendoTextArea({
        value: "a very good description"
    }).data('kendoTextArea');
    var value = textarea.value();

    console.log(value); // Displays "a very good description"
    textarea.value("even better description");
    value = textarea.value();
    console.log(value); // Displays "even better description"
</script>
In this article
Not finding the help you need? Improve this article