This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using dynamic drop down multiple time in same page

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I have two drop downs, which work fine, but i want to use then repeatedly, but the problem is how could i identify which drop down is being used. my code is below. The top two works fine, when i select a value from below one, the above one is getting populated. the code is below.

zone.jsp


loc.jsp




What is the solution please someone show me.

Thanks and Regards.
Adeeb
 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey.
I tried changing the id of other select to "loc1" and calling it in javascript like this: document.getElementById("loc1").innerHTML=xmlHttp.responseText . But that is changing the options of the above select also.. I am new to javascript. someone help me please.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the same id used more than once on the page? If so, that's invalid.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic