我想在条件f单选按钮列表上的下拉列表 [英] i want a dropdown list on the condition f radio button list

查看:50
本文介绍了我想在条件f单选按钮列表上的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在条件f单选按钮列表上的下拉列表



例如

radiobtn1公司

radibtn2 indivisual



如果usr创建compny radiobutton然后在dropdownlist中,如果他单击indivisual将显示所有公司名称,然后dropdownlist将隐藏

i want a dropdown list on the condition f radio button list

exampl
radiobtn1 company
radibtn2 indivisual

if usr create compny radiobutton then in dropdownlist all company name will be shown if he click indivisual then the dropdownlist will be hide

推荐答案

将两个单选按钮放在同一组中。

在单选按钮更改事件上编写代码。如果value为0,则绑定下拉列表并显示下拉列表,如果value为1,则隐藏下拉列表。
Put both the radio buttons in same group.
Write a code on radio button change event. If value is 0 then bind the dropdown list and show the dropdown list and if value is 1 then hide the dropdown list.


这篇关于我想在条件f单选按钮列表上的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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