Re: QuickForm hierselect muiltiple choice problem
| From: | Alexey Borzov | Date: | Wed, 02 Jun 2004 18:35:43 +0000 |
| Subject: | Re: QuickForm hierselect muiltiple choice problem | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12841@lists.php.net to get a copy of this message | ||
Hi!
Helder Miguel Rodrigues wrote:
$foo =& $form->addElement('hierselect', ...); $els =& $foo->getElements(); $els[1]->updateAttributes(array('size' => 6, 'multiple' => 'multiple')); I didn't test this, but it *may* work...I dont understand how can i do that?There is any solution to be possible to have multiple selections in the second select?I think you set the 'multiple' attribute for both selects this way. Get the hierselect's elements by using getElements() and update the attributes only of the second one.