J
john woo
Hi
if there are 3 selections, named location,department,employee, the
relationshipe is, in a location there are departments, in a department
there are employees, so for a selected location, there should be a set
of associated departments each of which there should be a set of
employees.
I have an example, but only for 2 selections, like
<form name="location">
<select name="location_category"
onChange="swap
(window.document.the_form.locaiton_category.
options[selectedIndex].text);">
<option selected>...<option>...
<option>...
</select>
<select name="department" multiple>
<option>...
<option>...
<option>...
</select>
</form>
function swap(array)
{
var numbers_select = window.document.the_form;
var the_array = eval(array);
setOptionText(window.document.the_form.location, array);
}
Can any one provide me with workable example
if there are 3 selections, named location,department,employee, the
relationshipe is, in a location there are departments, in a department
there are employees, so for a selected location, there should be a set
of associated departments each of which there should be a set of
employees.
I have an example, but only for 2 selections, like
<form name="location">
<select name="location_category"
onChange="swap
(window.document.the_form.locaiton_category.
options[selectedIndex].text);">
<option selected>...<option>...
<option>...
</select>
<select name="department" multiple>
<option>...
<option>...
<option>...
</select>
</form>
function swap(array)
{
var numbers_select = window.document.the_form;
var the_array = eval(array);
setOptionText(window.document.the_form.location, array);
}
Can any one provide me with workable example