[QF] Hierselect, different attributes

From: Date: Tue, 16 Mar 2004 05:20:52 +0000
Subject: [QF] Hierselect, different attributes
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11313@lists.php.net to get a copy of this message
Hi, what would be the easiest/fastest/cleanest way to set independent attributes to the two select input of a hierselect? What I'm trying to achieve is: - no attributes for the first select - size=10 for the second select. This is what i'm currently trying: <?
    $hs = &HTML_QuickForm::createElement("hierselect", "hierSel", null, null);
    $hs->setMainOptions($category);
    $hs->setSecOptions($secondary);
    $selectActorGroup[] = $hs;
    $form->addGroup($selectActorGroup, null, "Special Select:", "&nbsp;" );
    $form->updateElementAttr( array("hierSel[1]"), array("size" => "10" ) );
?> Any help or comment would be appreciated. Cheers, EB. --

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