Hello! I need some help. I have two dropdown lists on the same page. If I select an option in the first one I want the other one to change correspondingly.
For example: I have a list of event domains (culture, entertainment) and for each domain I have a list of categories (culture with theatre, opera,films and entertainment with parties, shows, concerts). I defined the event domain list in the class EventForm.java as an arrayList. I don't know how to define the lists for the event categories such that when choosing a domain in the form, automaticaly to display the corresponding categories. I give you the example for my first option list as I call it in the JSP:
However, if there are many possible choices for the second select box, I'd recommend submitting the form with the onchange event of the first select. Then have your action class format the proper select box for the second option and redisplay the page.