Magic Icon Elastic Textareas: Magic JavaScript

Quick Jump ↵

Usage

Add data-mjf="elastic_textareas" id="ELEMENT_ID" to your <textarea> tags.

Add <script type="text/javascript">$m.wand.elastic_textareas = true;</script> inside your <body> tag.

Example

Notes

Add data-mjf_elastic_textareas_max_height="N" is the maximum height in pixels the textarea can grow to.

« Back to the main documentation