aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes using dynamic drop down multiple time in same page 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 "using dynamic drop down multiple time in same page" Watch "using dynamic drop down multiple time in same page" New topic
Author

using dynamic drop down multiple time in same page

adeeb alexander
Ranch Hand

Joined: May 29, 2008
Posts: 268
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

Joined: May 29, 2008
Posts: 268
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

Joined: Jan 10, 2002
Posts: 61433
    
  67

Do you have the same id used more than once on the page? If so, that's invalid.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using dynamic drop down multiple time in same page