如何在其他onchange事件上填充drtopdownlist? [英] How to fill a drtopdownlist on onchange event of other?

查看:74
本文介绍了如何在其他onchange事件上填充drtopdownlist?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表单中有两个下拉列表,并且都将使用数据库中的值动态填充这两个列表.条件是当用户将在第一个下拉列表中选择一个选项时,第二个下拉列表将使用适当的值自动填充关于第一个的值.如何进行?

注意:尚未采用诸如struts,Spring等框架.

There is two Dropdownlists in my form and both of them are to be filled in dynamically with values from database.The condition is that while users will select an option in the first dropdownlist, the second dropdownlist will be filled in automatically with appropriate values with respect to the first one.How can I proceed?

NB:No framework like struts, Spring etc hasbeen adopted.

推荐答案

您可以为此使用AJAX级联下拉菜单.
请通过下面的链接获取更多详细信息,并提供一个很好的示例.

CascadingDropDown示例 [
You can use AJAX cascading drop down for this.
Follow below link for more details with a good example.

CascadingDropDown Example[^]

Hope it helps.


[
This[^] might help.


这篇关于如何在其他onchange事件上填充drtopdownlist?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆