sending Multiselect values using ajax
I am sending multiselect dropdown values to a JSP PAGE. Below is the AJAX code that send the multiselect values. The JSP PAge includes SQL query to read from database and show its values in another dropdown. Below code only display cascading dropdown values based on on select and not multiselect. It appears that only one value is sent to apps.jsp and not all values. I tried few changes and it didn't work. Below is the best working code available with me. Any help to get second dropdown display values based on multiselect from first dropdown? Single dropdown works fine with below code. Thank you.
Your HTML and ajax call is working fine. The problem is with your java code and how the HTML treats it. I don't know java, but:
in the HTML your putting the return into the div not the dropdown!
I would write out the entire code for the dropdown in the server side file and send the whole thing (The options and selects) back down the line.
|All times are GMT +1. The time now is 04:06 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.