• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to populate the dropdown using javascript

 
Rohit Sharad Sharma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you paste your code ?
Ideally it should work.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, what is not working ? Post some code and explain the problem in detail
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic