我正在使用 jQuery 插件在我的页面上显示一个滑块,我想在用户按下搜索按钮(提交表单)时隐藏它。我怎样才能做到这一点 ?调用 Slider 的代码:
<!-- Initialize the csstubeslider plugin -->
<script type="text/javascript">
$(window).load(function(){
$("#gallery").csstubeslider();
});
</script>
我的html:
<div id="gallery"><a href="#" class="show">
<img src="images/slider/s1.jpg" id="slideimg" />
</a>
<a href="#" <img src="images/slider/s2.jpg" id="slideimg" />
</a>
这是表格:
<form class="searchform" action="webpage.php" method="POST">
<input class="searchfield autosuggest" type="text" name="name" placeholder="Search for a name " onFocus="if (this.value == 'Search...') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Search...';}" />
<input class="searchbutton" type="submit" name"name" value="Go" />
</form>