Optgroup arrays

Hello,

I’m trying to create an select box utilizing the optgroup tag. The select box should list all the parent jobs as the label and the child jobs as the options.
I have the parent jobs listing, but the problem is getting the child jobs to group with the correct parent job.

Parent Jobs
$parent_job_list = get_parent_job_list();

Child Jobs
$child_job_list = get_child_job_list($job_id);

[code]

Job: ALL {section name=par loop=$par_job_list} {section name=job loop=$child_job_list} {$child_job_list[job][0]}, {$child_job_list[job][1]} {/section} {/section} [/code]
Sponsor our Newsletter | Privacy Policy | Terms of Service