大佬教程收集整理的这篇文章主要介绍了jquery模态对话框onclick?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
http://jqueryui.com/demos/dialog/#modal-message
当您点击ClickMe时发生.
怎么办?
<script type="text/javascript"> $(document).ready(function() { $('div.thedialog').dialog({ autoOpen: false }) $('#thelink').click(function(){ $('div.thedialog').dialog('open'); }); } </script> </head> <body> <div id="thedialog" title="Download complete"> <p> <span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span> Your files have downloaded successfully into the My Downloads folder. </p> <p> Currently using <b>36% of your storage space</b>. </p> </div> <a href="#" id="thelink">Clickme</a>
没什么发生
工作代码:
<!doctype html> <head> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/ui-lightness/jquery-ui.css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('div#thedialog').dialog({ autoOpen: false }) $('#thelink').click(function(){ $('div#thedialog').dialog('open'); }); }) </script> </head> <body> <div id="thedialog" title="Download complete"> <p> <span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span> Your files have downloaded successfully into the My Downloads folder. </p> <p> Currently using <b>36% of your storage space</b>. </p> </div> <a href="#" id="thelink">Clickme</a> </body>
以上是大佬教程为你收集整理的jquery模态对话框onclick?全部内容,希望文章能够帮你解决jquery模态对话框onclick?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。