I am trying to inset text into a html tag created using zend form.
This is my code below, excluding my actual form elements
$this->addElements(array( // My other form elements array( 'hidden', 'dummy', array( 'required' => false, 'ignore' => true, 'autoInsertNotEmptyValidator' => false, 'decorators' => array( array( 'HtmlTag', array( 'tag' => 'div', 'id' => 'DescCharsRemaining', 'setValue' => ' 2000 Characters Remaining ' ) ) ) ) ), // My other form elements
I would like to add some text similar to 'setValue' but inside HtmlTag instead of a html property of the HtmlTag.
The result I get,
<div id="DescCharsRemaining" setvalue="2000 Characters Remaining"></div>
The result i want,
<div id="DescCharsRemaining">2000 Characters Remaining</div>