posted 15 years ago
Hello eveyone,
I am new to Ajax and have been fiddling with it for the last couple of days. I am trying to get a dropdown filter to work. I have managed to sort out the filter for the frist dropdown using a Ajax script but cannot get the second drop down to work. I am not too sure to write the correct Ajax syntax. My question is on the second dropdown, how can I pass the id for the first onChange event and the second onChange event...
Here is my explanation on what I am trying to achieve,
When a user selects Student Name from the frist dropDown, then the onchange event runs the Ajax script
and filters the second Dropdown and displays all the exams details by the student name selected above. The code works fine uptill this point.
Now, when I select the second dropdown, I want it to take the value of the frist dropdown and the second dropdown and
then filter the third dropdown. I do not know the correct syntax in Ajax on how to pass the onChange event on the frist two dropdowns.
Here is my html dropdown code:
Here is the Ajax script I am using:
Here is the dropdownlist.jsp page that runs the Ajax and gets the values for the second dropdown..
My Question is how can I write the correct syntax for running the Ajax script on the onChage event of the
second dropdown?
[ March 28, 2008: Message edited by: Bear Bibeault ]