在div显示后,Ajax条形图立即关闭 [英] Ajax bar chart is closed immediately after shown at div

查看:57
本文介绍了在div显示后,Ajax条形图立即关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,







这里我有2个div容器。一个是投票选项和投票按钮。另一个div有ajax条形图。如果我选择任何单选按钮并单击投票na,则立即数据将存储在DB中并且当前div(Voting div)将关闭。并显示我的ajax图表div。最初我的ajax图表div是display:none。我试过了



Hi All,



Here i have 2 div container. one is have voting options and vote button. Another one div have ajax barchart. If i select any radio button and click vote na, immediately data will stored in DB and current div(Voting div) closed. and my ajax chart div is shown. Initially my ajax chart div is display:none. I have tried

<script type="text/javascript">
        $('.white').click(function () {
            $('#mac_pc_none').hide();
            $('#chart').show();
        });
    </script>





这里一切都很好,但我的图表div会在2秒后自动关闭,欢迎所有回复。



谢谢和问候,



Dhineshkumar V



here everything is fine but my chart div is automatically closed with in 2 seconds, All replies are welcome.

Thanks and Regards,

Dhineshkumar V

推荐答案

('。white')。click(function(){
('.white').click(function () {


('#mac_pc_none')。hide();
('#mac_pc_none').hide();


('# chart')。show();
});
< / script >
('#chart').show(); }); </script>





这里一切都很好,但我的图表div会在2秒后自动关闭,欢迎所有回复。



谢谢和问候,



Dhineshkumar V



here everything is fine but my chart div is automatically closed with in 2 seconds, All replies are welcome.

Thanks and Regards,

Dhineshkumar V


这篇关于在div显示后,Ajax条形图立即关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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