<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>
$("#Button1").off('click').on('click',function () { $("#dialog").dialog("open"); return false; //to prevent the browser actually following the links });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)