Hi,
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
<div id = "parentDiv">
<div id = "innerDiv"></div>
</div>
Code taken from another question here on stackoverflow, can't remember which one, please forgive me.
$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();