PHP Classes

how to set id of parent element

Recommend this page to a friend!

      HtmlForm PHP 5  >  All threads  >  how to set id of parent element  >  (Un) Subscribe thread alerts  
Subject:how to set id of parent element
Summary:attributes for master div segment set
Messages:12
Author:w. studer
Date:2013-02-19 09:34:25
Update:2013-02-21 16:51:40
 
  1 - 10   11 - 12  

  11. Re: how to set id of parent element   Reply   Report abuse  
Picture of Sebastian Schlapkohl Sebastian Schlapkohl - 2013-02-21 16:44:14 - In reply to message 10 from w. studer
I'm not sure what you mean by "value".

But if I understand this correctly, you could do something like this.

$custom = CustomHtml::get();
$form->addElement($custom);

...

do stuff

...

$custom->setHtml('<input name="lolcat" type="hidden" value="yayicanhascheezburger"/>');

...

$form->doRender();

  12. Re: how to set id of parent element   Reply   Report abuse  
Picture of w. studer w. studer - 2013-02-21 16:51:40 - In reply to message 11 from Sebastian Schlapkohl
That's what I searched for. Thanks

 
  1 - 10   11 - 12