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 dynamically created multiple dynamic selects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamically created multiple dynamic selects" Watch "dynamically created multiple dynamic selects" New topic
Author

dynamically created multiple dynamic selects

adeeb alexander
Ranch Hand

Joined: May 29, 2008
Posts: 268
Hi guyz.
I have a huge prob. It may look simple to you guyz. Its hard for me because I am using ajax which I am not aware of. Please guide me a little.

I dynamically added few elements. In those one is chekbox, a textfield and two select's. One select is loaded based on selection of first. Till here its fine. The problem is when i add next row of same elements and try to change the value of newly added element, the first select(2) values changes. Which should only change when I change the select of first select only. I would also like to know how can I retrieve the values of these dynamically created elements with jsp. The Ajax and my HTML code is given below.

Index.jsp




item.jsp (this is used to populate based on selected value)



Hope I am clear and looking for anyone's reply on this issue.
Ajax is like alien language



Thanks and Regards
Adeeb.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Posting server-side JSP code isn't very helpful to solve JavaScript questions.

Please pare the code down to an SSCCE that shows the problem with no server-side JSP code.

I'd also adopt jQuery to do the Ajax for you. Much simpler.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamically created multiple dynamic selects
 
Similar Threads
How to retain automatically generated fields on pageload in struts2
Multiple Select box Problem
Resetting values of table cells in Javascript
Nested Tag (in Form of Table ) :: not able to submit masterForm
Using JSTL Data Displayed In Browser Is Getting Fixed To 24576 Bytes(24 KB)