惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
D
Docker
N
Netflix TechBlog - Medium
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
L
LangChain Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
博客园_首页
量子位
罗磊的独立博客
Blog — PlanetScale
Blog — PlanetScale
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
D
DataBreaches.Net
I
InfoQ
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
H
Help Net Security
V
V2EX

博客园 - Eric.Chai

在WebService中不能返回SqlDataReader 控件生命周期 Solution:TF10216: Team Foundation services are currently unavailable SelectedValue小技巧 web.config点滴:更改login控件对密码安全性的要求 ASP.NET2.0网站配置的数据库连接失败问题 什么是LINQ? MSCRM自动填写当前时间 DIV和SPAN的区别 MSCRM3.0备份与还原 MSCRM IFrame 应用 ASP.NET(c#)实现防止同一用户同时登陆 “奇怪”的数据类型 简体中文转换繁体中文 使用数组动态赋值SQL IN ()条件 C#读文本文件 DatSet与DataTable的关系 SharePoint Server 2007 Web内容管理中的几个关键概念 英语面试题 --Algorithms
关于界面元素的隐藏
Eric.Chai · 2008-03-31 · via 博客园 - Eric.Chai

很多时候我们都要打开记录时OnLoad()动态的显示/隐藏某个界面元素,下面的Jscript 可以帮助我们达到目的。

/*只隐藏这个field*/

crmForm.all.field.style.display = 'none';

/*隐藏这个field 及其 lable*/

crmForm.all.field.style.display = 'none';

crmForm.all.field_c.style.display = 'none';

/*隐藏这个field及其所在的行*/

crmForm.all.field.parentElement.parentElement.style.display = 'none';

/*隐藏这个field及其所在的区域*/

crmForm.all.field.parentElement.parentElement.parentElement.style.display = 'none';

/*隐藏整个tab*/

crmForm.all.tab2Tab.style.display = 'none';