Re: QuickForm: Setting a attribute to radio

From: Date: Sat, 18 Dec 2004 07:33:03 +0000
Subject: Re: QuickForm: Setting a attribute to radio
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16304@lists.php.net to get a copy of this message
On Sat, 18 Dec 2004 05:30:16 -0200, Jacques <iacques@yahoo.com.br> wrote: > Hi people, > > I need setting the class for a group radio. Anybody help me? > > $radio[] = &HTML_QuickForm::createElement('radio', null, null , > 'Label', > 'value'); > > Where i put the attribute like (array('class' => 'radioClass'))? Note > that i am using the createElement method for this... According to the docs, it's the 5th parameter to the constructor for the radio element, so it's the 6th parameter to createElement. Just add it to the end of that createElement call. > > Jacques, from Brazil. > -- Justin Patrin

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