Announcement Announcement Module
No announcement yet.
Linked selectlists in Spring project Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linked selectlists in Spring project

    My task is simple: to populate another selectlist based on what is choosen from one selectlist, querying populating data from database.

    I think it goes something like:

    1.User clicks the parent selectlist which returns the id of the selected item.
    2. On selectlist onChange method a query like "select id, description from table where child_id="+id is executed.
    3. Child selectlist is populated based on that query. Maybe the result of query is returned in a controller method?

    My problem is that I don't seem to find an example that would suit Spring 3 applications. There are multiple examples with php, and I'm newbie with JQuery.