Textarea

Visual

image-textarea
image-textarea

A normal textarea, styled to match the dizmo theme.

Data type

<textarea id="my-textarea" data-type="dizmo-textarea" cols=20 rows=3></textarea>

Constraints

Only works on textarea elements.

Usage

Manual initialization

DizmoElements('#my-textarea').dtextarea();

To get the current textarea value:

var data=DizmoElements('#my-textarea').val();

To set the textarea value:

DizmoElements('#my-textarea').val('my text');

To get the textarea value after the focus has shifted:

DizmoElements('#my-textarea').on('blur',function(){
    var data=DizmoElements('#my-textarea').val();
});