我的jquery在每次点击时都不起作用 [英] my jquery is not working on each click
本文介绍了我的jquery在每次点击时都不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
今天我正在使用JQUERY模态对话框
我的代码:< br $> b $ b
Hi,
Today i was working on JQUERY Modal Dialog Box
My Code:
<div id="dialog">
this is from my dailog!
</div>
<button id="Button1" >Message</button>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$(function () {
$("#dialog").dialog({
autoOpen: false,
modal: true,
show: {
effect: "shake",
duration: 1000
},
hide: {
effect: "slide",
duration: 1000
}
});
});
});
</script>
<script>
$(document).ready(function () {
$("#Button1").click(function () {
$("#dialog").dialog("open");
});
});
</script>
但它只是在我关闭对话框后第一次单击按钮时再次工作,再次单击按钮弹出,但它没有得到..在...一切
请建议我......该怎么做..
谢谢
ABDUL SUBHAN
But its working on only for the first time I click the button, after closing the dialog, and again was clicking the button to popup but its not getting..doing..anything
Please suggest me..what to do..
Thanks
ABDUL SUBHAN
推荐答案
(文件) .ready(function(){
(document).ready(function () {
(function(){
(function () {
(#dialog)。dialog({
autoOpen:false,
modal:true,
show:{
effect:shake,
duration:1000
},
hide: {
效果:幻灯片,
持续时间:1000
}
});
});
});
< / script>
< script>
("#dialog").dialog({ autoOpen: false, modal: true, show: { effect: "shake", duration: 1000 }, hide: { effect: "slide", duration: 1000 } }); }); }); </script> <script>
这篇关于我的jquery在每次点击时都不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文