Re: access certain select within hierselect
| From: | Alexey Borzov | Date: | Fri, 08 Dec 2006 12:54:36 +0000 |
| Subject: | Re: access certain select within hierselect | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26025@lists.php.net to get a copy of this message | ||
Hi,
Tim Whitbeck wrote:
I'm creating a 3-level hierselect element and I want to access the third select within that hierselect. I create the hierselect with: $obj_hdd_job = &$obj_points_form->addElement('hierselect', 'ddlJob', 'Select Job', '', '<br />'); this works fine, but I want to be able to access the value of the third select within this hierselect element. In the documentation it is mentioned that hierselects are an extension of the Group element, however I'm not sure what the name of this group is or how to access it. How would I get the value of the third select in this case? I tried $obj_hdd_job[2], to no avail. Thank you.$selects =& $obj_hdd_job->getElements(); $your_select =& $selects[2];