javascript - Display the data in <div> into popup using JQuery -
<script type="text/javascript"> $(document).ready(function() { $("#popup_div").dialog({ autoopen: false }); $("#btn_click").click(function() { $("#popup_div").dialog("open"); //$("#popup_div").toggle("100", $("#popup_div").dialog("close")); }); }); </script>
i wrote function display data in popup , popup close. need popup stays sometime after clicking close button close.
try this,
$("#btn_click").click(function () { $("#popup_div").dialog("open"); }); // code close dialog, let btnclose id of button in popup_div $("#popup_div").on('click','#btnclose',function(){ $("#popup_div").dialog("close"); });
Comments
Post a Comment