This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Dependent drop down boxes with javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dependent drop down boxes with javascript?" Watch "Dependent drop down boxes with javascript?" New topic
Author

Dependent drop down boxes with javascript?

karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
I am new to Struts. I need to implement dependent drop down boxes.


it's not working for Dependent drop down boxes 2nd state drop box is not properly working ..


2nd drop down box not orderly displayed ...
please help any one








Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9150
    
    9

Your javascript code submits the form. It doesn't make the second select dependent on the first.
Struts 2 has a doubleselect tag. If you aren't maintaining legacy code, I'd recommend you use Struts 2. It is much easier to work with than Struts 1.x.


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dependent drop down boxes with javascript?
 
It's not a secret anymore!