Jquery Click在第一次单击时不起作用,但在第二次单击时它起作用 [英] Jquery Click does not work at the 1st click, but it worked when 2nd click

查看:144
本文介绍了Jquery Click在第一次单击时不起作用,但在第二次单击时它起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有一个问题,jquery .click()函数无法正常工作。

场景是这样的,

当我点击我的文本框时,底部栏显示出来,这是我运行它的jquery函数



 $ j(document).ready(function($){
// $ j(#tblPostGodsFeed)。hide();
$ j('#<% = txtShout.ClientID %> ')。 bind('click',function($){
$ j(#tblPostGodsFeed)。show();
});
});



当我点击它时,它不会显示,但是当我双击它出现的文本框时?我怎么能这样做?





还有这个,当我有一个动作按钮,并点击动作按钮时,它必须下拉框,当我点击它时,下拉菜单没有显示,但是当我双击下拉菜单时,它就会显示出来。





我的jquery有问题吗?

解决方案

j (document).ready(function(


){
//


j(#tblPostGodsFeed)。hide();

hello, i've a stuck question where, the jquery .click() function did not working properly.
the scenario is like this,
when i click at my textbox, the bottom bar is show up, this is my jquery function to run it

$j(document).ready(function ($) {
                                            //$j("#tblPostGodsFeed").hide();
                                            $j('#<%= txtShout.ClientID %>').bind('click',function ($) {
                                                $j("#tblPostGodsFeed").show();
                                            });
                                        });


when i click it, it won't show up, but when i double click the textbox it showed up ? how can i do it ?


and also this, when i've an action button, and click the action button, it must dropdown the box, when i've click it, the dropdown didn't show up, but when i double click the drop down it just show up.


is there something wrong with my jquery?

解决方案

j(document).ready(function (


) { //


j("#tblPostGodsFeed").hide();


这篇关于Jquery Click在第一次单击时不起作用,但在第二次单击时它起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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