There are three drop down boxes, namely, A, B and C.
A -> enable / disable
B -> Choco / Vanilla / Butter scotch
C -> Cup / Shake
The default value of A will be "disable", so that the B and C menus are disabled, and with null values by default and will not show anything but a disabled, grayed out blank drop down box, when the form is submitted.
When A is set to "enable", then B and C are also enabled for the user, and there will no be null for them this time.
Because when A is disabled, I have to include null as default value for B and C in select option, and when A is enabled then the null will also come as an option for the user.
Please guide me on how to achieve this. Sincere thanks.
The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory | www.TechAspire.blogspot.in
I have no idea of AJAX and here, the code is very bad in design. Not html is JSP but Java code. Its like all field details are in Map, and this Map is passed onto some class, which then parses the values and does out.println("..."); for writing the code. So I have to be very careful here, as I do not want to break the existing design. To change the values I have written onChange() already in the parsing Java class, and its working also. The main issue is that when A is disabled, B and C should not show anything and should be disabled, and pass NULL to underlying commands to be saved onto DB, but when A is enabled, then proper options are displayed in B and C drop-downs, and no blank space is shown.
Or can I do something like a multi select box. For A's disable option, only null or blank B and C options are available and disabled. When A is enabled, then all other options are displayed rather that blank option. I have no idea of this also.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: A drop down menu that decides the fate of other drop down menus