File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes how to populate the dropdown using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to populate the dropdown using javascript" Watch "how to populate the dropdown using javascript" New topic
Author

how to populate the dropdown using javascript

Rohit Sharad Sharma
Greenhorn

Joined: Jan 14, 2010
Posts: 6
Hi,
I had two dropdown box. My requirement is upon selecting a particular value in first dropdown the values in the second dropdown should change.
For this I had a arraylist which contains all the possible combinations of values for second dropdown.

I am using div style tag to hide the first dropdown and the displaying the second one.
But this approach is not working.
Please help me out with any other alternative approach.

Thanks in advance.
Ram Para
Ranch Hand

Joined: Jul 09, 2008
Posts: 50
Can you paste your code ?
Ideally it should work.

Ram Parashar
http://doinfinite.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61420
    
  67

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61420
    
  67

There's no such thing as an arraylist in JavaScript.

You'll need to give us a lot more details before anyone can help.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

So, what is not working ? Post some code and explain the problem in detail


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to populate the dropdown using javascript