Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Changes in JSP - Urgent

 
vivek makode
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am having 2 list boxes (using select tag of html)in my registration.jsp page.
one select tag : main account types
second select tag : sub types for each main account types.
first select tag is dynamically populated from the database. i have done it.
but when user selects the main account type from the first list box, the second list box should be automatically populated depending upon his selection in the first list box.
how can i do it efficiently?
i am trying with javascript but i am not fully successful.
please help
vivek
 
S Chandra Mohan
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi vivek,
U can dynamically populate the second select tag
depending upon the first in script itself.
The idea is...create a hidden list box
with all main and sub details, which will hold
as a master.
Once u select a value in first select u can
remove the values in the second and add
the values respective to the first select.
I have done the same and its working fine...
if u want details...mail me.
regards
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic