Re: HTML_QuickForm style question

From: Date: Wed, 10 Aug 2005 20:46:30 +0000
Subject: Re: HTML_QuickForm style question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20358@lists.php.net to get a copy of this message
On 8/10/05, Pete Soderling <petesoder@gmail.com> wrote: > Hello, > > I have a question about HTML_QuickForm. I'm trying to figure out how to pass > an HTML style value when creating a SELECT element. > > For instance, I would like the following HTML to be generated: <select > name="foo" style="f140"> > > I have tried code like the following (in addition to all of my other > QuickForm code), but it doesn't seem to do anything. > > require_once 'HTML/QuickForm/Renderer/Array.php'; > $test = new HTML_QuickForm_Renderer_Array(); > $test->setElementStyle('select','f140'); > > Any suggestions are appreciated. > $el =& $form->getElement('foo'); $el->updateAttributes(array('style' => 'f140')); -- Justin Patrin

« previous php.pear.general (#20358) next »