Hi,
I have gotten some great help from here before and I am hoping I can get some more. I have a jsp page with 3 select boxes with both the 2nd and 3rd boxes dependent on the first. I have gotten the 2nd box to work using an array and the onchange event, but the 3rd box is giving me fits! Based on what is chosen in the 1st box, I need that selection to use as a parameter in my sql query. If I query the database on page load and create an array, how would I, in javascript, only select from the array where the it meets the selection in the 1st box? Is there another way to do this? Any suggestions are appreciated.
I have gotten some great help from here before and I am hoping I can get some more. I have a jsp page with 3 select boxes with both the 2nd and 3rd boxes dependent on the first. I have gotten the 2nd box to work using an array and the onchange event, but the 3rd box is giving me fits! Based on what is chosen in the 1st box, I need that selection to use as a parameter in my sql query. If I query the database on page load and create an array, how would I, in javascript, only select from the array where the it meets the selection in the 1st box? Is there another way to do this? Any suggestions are appreciated.