如何在选择中隐藏选项 [英] How to Hide the Options in select

查看:91
本文介绍了如何在选择中隐藏选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我的问题是,我想在下拉菜单中隐藏选项。


例如,我代码为

Hi Every one,

My Problem is, I want to hide the options in drop down.

As an example, I have code as

展开 | 选择 | Wrap | 行号

推荐答案

你想隐藏这个选项是什么意思?是否要禁用它或禁用一个选择选项?
What do you mean you want to hid the option? Do you want to disable it or make the one select option disabled?


在下拉列表中隐藏选项的最简单方法是不显示它。这是下拉的目的吗?让用户选择。如果你不想让他/她选择,就不要表现出来。


罗纳德:酷:
The easiest way to hide an option in a drop down list is not to show it at all. That is the purpose of a drop down? To let a user select. If you don''t want him/her to select, dont''t show it.

Ronald :cool:


你应该怎么做do有一个上面的选项,如单选按钮,然后根据他们选择的内容,下拉将只加载依赖于单选按钮的值。


HTH,

Aric
What you should do is have an option above like a radio button then depending on what they pick the drop down will load with only the values dependent on the radio buttons.

HTH,
Aric


这篇关于如何在选择中隐藏选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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