Re: HTML_QuickForm style question

From: Date: Wed, 10 Aug 2005 21:14:31 +0000
Subject: Re: HTML_QuickForm style question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20359@lists.php.net to get a copy of this message
--- 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. > > --pete In order to just add a style to those elements, I use: $form->addElement('select', 'fldName', 'Name of your selection: ', $db_Result, array('STYLE'=>'width: 300px')); ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs

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