如何根据复选框中的值填充下拉列表中的数据 [英] how to populate data in dropdown based on the values in checkbox
本文介绍了如何根据复选框中的值填充下拉列表中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的表格每天有7个复选框。
另一行
我有一天下拉菜单
i希望以下列方式显示下拉日期,即我在复选框中选择的任何一天都不会显示在下拉列表中。
i have a form which has 7 check box each for a day.
in another row i have dropdown for day
i want to display the days in dropdown in such a way that whichever day i chose in the check box is not displayed in the dropdownlist.
推荐答案
如果您正在使用ASP.NET,您可以尝试使用名为CascadingDropDown的AJAX Extender调用Web方法来返回List< t>可以在DropDownList中显示的值,其中ParentControlID属性设置为该CheckBox的ID。
If you're using ASP.NET, You can try using AJAX Extender called CascadingDropDown that calls a web method to return List<t> values that can be displayed in DropDownList with ParentControlID property set to ID of that CheckBox.
这篇关于如何根据复选框中的值填充下拉列表中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文