zend framework Zend_Form div inside div

garbdinoni

New Member
I was browsing stackoverflow in a search for an answer to my question. Basically i want to use Zend_Form to place a div inside a div right beneath an input box. I have found the code below to add a div but now i want another one inside. I need to achieve the html equivalent of \[code\]<div id = "parentDiv"> <div id = "innerDiv"></div></div>\[/code\]Code taken from another question here on stackoverflow, can't remember which one, please forgive me.\[code\]$this->addElement( 'hidden', 'suggestions', array( 'required' => false, 'ignore' => true, 'autoInsertNotEmptyValidator' => false, 'decorators' => array( array( 'HtmlTag', array( 'tag' => 'div', 'id' => 'suggestions', 'class' => 'suggestionsBox', 'style' => 'display: none;' ) ) ) ) ); $this->suggestions->clearValidators();\[/code\]
 
Back
Top