# contact-forms/1.9.2/PFBC/Element/Textarea.php

Contact Forms by Cimatti, version 1.9.2. 16 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/1.9.2/code/PFBC/Element/Textarea.php
- Raw: https://pluginprobe.com/plugins/contact-forms/1.9.2/raw/PFBC/Element/Textarea.php
- Modified: 2023-03-14T12:04:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/1.9.2/code/PFBC/Element/Textarea.php#L10-L20`.

```php
<?php
class Element_Textarea extends Element {
	protected $attributes = array("class" => "pfbc-textarea", "rows" => "5");

	public function jQueryDocumentReady() {
		echo 'jQuery("#', $this->attributes["id"], '").outerWidth(jQuery("#', $this->attributes["id"], '").width());';
	}

	public function render() {
        echo "<textarea", $this->getAttributes("value"), ">";
        if(!empty($this->attributes["value"]))
            echo $this->attributes["value"];
        echo "</textarea>";
    }
}

```
