如何在选中选项卡区域中的其他Web部件时隐藏CEWP的内容 [英] How to hide the contents of a CEWP when another webpart from tabbed zone is selected
本文介绍了如何在选中选项卡区域中的其他Web部件时隐藏CEWP的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Qtn:
我通过CEWP显示图像。我在选项卡区域中有两个Web部件A和B,我想在选项卡区域中选择webpart B时隐藏图像。
有人可以帮助我使用css / jquery来实现这个目标吗?
谢谢!
Harvinder kaur - MCTS,MCITP SharePoint
解决方案
嗨Harvinder,
以下示例供您参考。
< img id =" myimg" SRC =" HTTP:// IMAGEURL" />
< script src =" https://code.jquery.com/jquery-1.12.4.min.js"类型= QUOT;文本/ JavaScript的">< /脚本>
< script type =" text / javascript">
(function(){
("#tabsB" )。单击(函数(){
Qtn:
I have an image show up through a CEWP. I have two webparts A and B in a tabbed zone area, I want to hide the image when webpart B is selected from the tabbed zone.
Can someone please assist me on achieving this using css/jquery?
Thank you!
Harvinder kaur - MCTS, MCITP SharePoint
解决方案
Hi Harvinder,
The following example for your reference.
<img id="myimg" src="http://imageurl"/> <script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script> <script type="text/javascript">
(function(){
("#tabsB").click(function(){
这篇关于如何在选中选项卡区域中的其他Web部件时隐藏CEWP的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文