Set cols attribute for Textarea in ZendForm
This is my code for displaying a textbox in zendform. I am showing a shallow text area with the rows I want, but if I set an attribute on cols it does not add columns to it. Code:
$element = $this->CreateElement('textarea', 'description');
$element->setAttrib('rows', '4');
$element->setAttrib('cols', '8');
$element->setLabel('Comment');
+2
Muhammad Sajid
source
to share
2 answers