style="display:none" does not work for option element
Hello
I have a select list and I need a way to set certain option tags invisible. I tried applying style="display:none" to the option tags but this has had no effect.
The reason for this is that I am going to use some JavaScript to dynamically enable some selections in the drop down list.
Please see the attached code snippet.
Thanks
<select id="counties" tabindex="1">
<option value="">Select</option>
<option style="display:none" value="IE76176089">Carlow</option>
<option style="display:none" value="IE96268862">Cavan</option>
<option style="display:none" value="IE55624026">Clare</option>
<option style="display:none" value="GB55624026">London</option>
<option style="display:none" value="GB55624026">Surrey</option>
</select>
分享到:
相关推荐
基于Java+Springboot+Vue+elememt美食论坛平台设计实现,完整项目源码!
本篇文章给大家详细分享了Vue Elememt-UI构建管理后台的过程以及相关代码实例,一起参考学习下。
本设计以微信小程序为平台,采用SpringBoot+Uni-app的前后端框架设计,实现了基于微信小程序的社区疫情防控系统的功能
基于asp.net、vue、element UI实现网站的快速建立。使用vue和element UI实现界面渲染,使用vue-resource实现网络访问,使用asp.net实现身份验证和api的构建。
winform自定义按钮控件.zip
FlatA lightweight MVVM framework base on TypeScript.FlatFlat is a lightweight MVVM framework base on TypeScript, and flat can provide more possibilities in your project.Render在执行 render 的时候,会...
实现了用自己定义的布局,自定义修改dialog弹出框的背景
如花介绍如花商城是基于Thinkphp6 + uniapp + element开发的一套新零售移动电商系统,采用三端分离。功能包含商城,优惠券,分销,拼团,限时折扣,积分等功能,更适合企业二次开发;;微信小程序端,微信公众号端,...
SelectTree是组合element里面的select和tree两者实现的,可以实现多选,单选,同时选中以后关闭下拉框等操作
elememt ui 需要引用的index.js;index.css还有vue.js;这个是跟表格那个相匹配的!
ElementUIAdmin 基于Element-UI开发的简易后台,主要用于Element-UI框架的学习与入门。 项目演示地址 项目运行设置 安装依赖 npm install 本地运行 npm run serve 编译打包 npm run build 项目截图
在代码中直接写的布局,模仿微信朋友圈相片显示
D2-Crud是一套基于Vue.js 2.2.0 和Element UI 2.0.0 的表格组件。...大部分功能可由配置 json 实现,在实现并扩展了 Elememt 表格组件功能的同时,降低了开发难度,减少了代码量,大大简化了开发流程。
在使用vue element-ui form表单渲染的时候,会遇到这样的数据结构: { "title":''123455, ..."list": [ { "id": "quis consequat culpa ut pariatur", "name": "et quis irure dolore ullamco", ...