Re: QuickForm: design question regarding 3 level hierselect - how to add an "id=" option to each selection menu option
| From: | Justin Patrin | Date: | Mon, 01 Aug 2005 16:40:31 +0000 |
| Subject: | Re: QuickForm: design question regarding 3 level hierselect - how to add an "id=" option to each selection menu option | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20220@lists.php.net to get a copy of this message | ||
On 8/1/05, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote:
> The code below shows what I am trying to do. It works
> fine. I have a javascript link that takes the value
> of the last selection menu, $policy, and opens the
> details of the policy in a new window. The problem is
> that the index of the policy starts at an index of
> zero for all selection menus which does not reflect
> the record ID of the record. I could choose to lookup
> the record by title but the javascript in one line is
> almost impossible to I am looking for a way to add an
> "id=" option to each selection menu option which would
> have the record ID so lookups would be much easier.
>
> Any ideas are much appreciated!
>
It sounds like you're trying to get the value of the select from your
JS for a lookup.....Why not just get the value of the selected option?
--
Justin Patrin