Textarea Element Element
Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | About
Table of Contents
1 Textarea Element - #textarea {}
The textarea element produces an HTML textarea.
Usage
#textarea { text="Some text" }
Attributes
- text - (string)
- Set the textarea's contents.
- html_encode - (boolean)
- Set to true to safely html-encode the text.
- placeholder - (string)
- Sets the placeholder text (text that will be
in the textarea until the user focuses in the textarea). This uses the
HTML5 placeholder attribute, which is only supported in newer browsers.
To add support for older-browsers, you will need to link a placeholder
script in your template. You can do this by adding the following to your
template inside the
<head>section after loading jQuery.
<script src='/nitrogen/jquery.placeholder.js' type='text/javascript'></script>
- html_name - (string)
- The name attribute of the textarea.