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.

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 ....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.