在页面加载中调用JQuery,即使它没有作为页面加载给出 [英] JQuery is called in the page load even though it is not given as page load
本文介绍了在页面加载中调用JQuery,即使它没有作为页面加载给出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个jquery代码,打算通过ASP按钮单击调用,它可以在按钮单击时工作,但问题是,当调用时,即使页面加载事件中没有给出页面,也会加载页面。我在这里给jQuery请看看并给我你的建议
提前致谢
I have a jquery code which is intended to be called by an ASP Button click,it works on button click but the problem is ,when called , the page is loaded even though it is not given in the page load event. I give the jQuery here please see it and give me your suggestion
Thanks in advance
<script type="text/javascript">
$(function() {
$('#openDialog').click(
$(function() {
$("#dialog").dialog();
}
));
});
</script>
<asp:Button ID="openDialog" runat="server" Text="Submit" CssClass="myButton" />
<div id="dialog" title="BasicDialauge">
<p >This is chek for dialouge box</p>
</div>
推荐答案
( function (){
(' #openDialog') .click(
('#openDialog').click(
( function (){
这篇关于在页面加载中调用JQuery,即使它没有作为页面加载给出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文