0

Hi
I have an xml document with these elements:
<staff>
<employee>
<name>
<fname>Sally</fname>
<lname>Green</lname>
</name>
<department>Sales</department>
<personal>loops who would like some kalenow what to do. </personal>
<id>111</id>
<phone>555-444-1234</phone>
<image>../images/h111.jpg</image>
</employee>
</staff>

and I have to make a drop down:

<form action="" method="get">
<select name="showDept" size="1">
<option value="1">sales</option>
<option value="2">IT</option>
<option value="3">Human Resources</option>
<option value="4">Front Office</option>
</select>
</form>

that when selected will show a list of the people in that department.

I just cannot get off the ground, any help would be appreciated. I was going to do an if statement but javascript doesn't support it.

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by terme22
0

if I had a select, in a form, and onChange, it posted the result of the select to a function that passes the value as a parameter ....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.