Text Area
Visual
A normal text area, styled to match the dizmo theme.
Data type
<textarea id="my-textarea" data-type="dizmo-textarea" cols=20 rows=3></textarea>
Constraints
This 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();
});