Populating cascading dropdown lists in JSP/Servlet

后端 未结 4 1441
[愿得一人]
[愿得一人] 2020-11-22 03:32

Suppose I am having three dropdownlist controls named dd1, dd2 and dd3. The value of each dropdownlist comes from database. dd3<

4条回答
  •  情话喂你
    2020-11-22 04:19

    That was an awesome simple solution. I like how small the JQuery code is and really appreciate the link to the GSON API. All the examples made this an easy implementation.

    Had one issue on building the JSON server URL with the reference to the parent SELECT ( e.g. $(this).val() ) [needed to specify the :selected attribute]. I've modified the script a little to include the suggested updates. Thanks for the initial code.

    
    

提交回复
热议问题