本文介绍了如何使用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隐藏由标题模板拉入的div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 02:40