如何使用Jquery隐藏由标题模板拉入的div? [英] How do I hide a div being pulled in by a header template using Jquery?

查看:73
本文介绍了如何使用Jquery隐藏由标题模板拉入的div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望在辅助页面上显示标题模板中的标题。这个Jquery代码存在,但我不明白如何实际禁用它。任何帮助将不胜感激。



There is a banner being pulled in by a header template that I do not want displayed on my secondary page. This Jquery code exists but I don't understand how to actually disable it. Any help would be appreciated.

jQuery(document).ready(function() {
//right_now.str = parseInt(right_now.month + '' + right_now.day + '' + right_now.hour);
//right_now.expired = (right_now.str >= 112423) ? true : false ;
//console.log(right_now);
if (typeof remove_banner == "undefined") {
// do stuff
jQuery('#free_ship;).css('display','block');
}
});

推荐答案

jQuery(document).ready(function() {
if (typeof remove_banner == "undefined") {
// show control #free_ship;
jQuery('#free_ship;').css('display','block');
} else {
// hide control #free_ship;
jQuery('#free_ship;').css('display','none');
}
});


jQuery('#free_ship;')。css('display','none');

请尝试显示无此功能。

如果还有其他问题,请回复您的查询。

谢谢。

:)
jQuery('#free_ship;').css('display','none');
Please try with display none this would work.
If any further issue post back your queries.
Thanks.
:)


这篇关于如何使用Jquery隐藏由标题模板拉入的div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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