jQuery的问题 [英] Jquery Issue
本文介绍了jQuery的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我已经从ASP.NET中选择了项目,只需遍历代码
Hello Friends,
I have selected project from ASP.NET, just go through the code
<script type="text/javascript">
$(document).ready(function() {
$("#searchLink").click(function() {
$("#searchPanel").slideToggle(200);
$('#txtAWCategory').focus();
$('#txtAWCategory').val('');
// $('#txtpwd').val('');
})
});
</script>
<div style="text-align:right;">
<a id="searchLink">
<!--<img src="../images/btn_search.jpg" border="0" title="Search" alt="Search" />-->
<img src="Images/search.jpg" width="4%" alt="Search"/>
</a>
<div id="searchPanel">
<table>
<tr>
<td>AWCategory</td>
<td><asp:TextBox ID="txtAWCategory" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td colspan='2' align='right'><asp:Button ID="btnSearch" runat="server" Text="Go" /></td>
</tr>
</table>
<br />
</div>
</div>
问题是我使用了sidetoggle,当我第一次单击搜索图像时,searchPanel变得可见,但是第二次单击时,searchPanel不会隐藏.
任何解决方案.. ??
在此先感谢
Problem is I have used sidetoggle, when I first click on search image the searchPanel get visible but on second click the searchPanel does not hide.
Any solution..??
Thanks in advance
推荐答案
(document).ready(function(){
(document).ready(function() {
(#searchLink").click( function(){
("#searchLink").click(function() {
(#searchPanel").slideToggle(200);
("#searchPanel").slideToggle(200);
这篇关于jQuery的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文