单击按钮时调用jquery函数的回发 [英] postbacking when call jquery function on button click

查看:107
本文介绍了单击按钮时调用jquery函数的回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在aspx页面中使用JQuery时遇到问题,Page是post post。我在按钮点击时写了Jquery警报消息。当我点击按钮时,我的页面是邮寄包装。我找到了解决问题的方法。

(添加 返回false; 结束警报消息。)

点击按钮时调用jquery函数是否还有其他解决方案可以停止postpacking。







i have a problem when i use JQuery in aspx page,Page is post packing . i have written Jquery alert message on button click. when i click the button, my page is post packing. i got a solution for my problem.
(add return false; end of alert message.)
Is there any other solution for stop postpacking when call jquery function on button click.



$(document).ready(function(){
  $("#button1").click(function() {
     alert('welcome to Jquery');

    });

});







<asp:Button ID="Button1" runat="server" Text="Button" />

推荐答案

(document).ready(function(){
(document).ready(function(){


#button1)。click(function(){
alert(' 欢迎来到Jquery');

});

});
("#button1").click(function() { alert('welcome to Jquery'); }); });







<asp:Button ID="Button1" runat="server" Text="Button" />


Hii professional



这些链接可以帮助你...... 。



http://stackoverflow.com/questions/2879175/disable-buttons-on-post-back-using-jquery-in-net-app [ ^ ]



http:// stackoverflow。 com / questions / 14755731 / asp-net-jquery-button-click-prevent-postback [ ^ ]



如果有任何问题请在此分享。 ......





乐于助人。
Hii professional

these some link that will help you....

http://stackoverflow.com/questions/2879175/disable-buttons-on-post-back-using-jquery-in-net-app[^]

http://stackoverflow.com/questions/14755731/asp-net-jquery-button-click-prevent-postback[^]

if have any problem with it then please share here.......


Happy to help.


这篇关于单击按钮时调用jquery函数的回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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