jquery - cant open html page in dialog -
i created html page , want open html page in dialog onclick.
html:
<div id="onclosetemp"> --- --- </div> <li class="closebutton"><a href="#" class="bt btright" >close</a></li>
if click close, want onclosetemp div in dialog. tried getting html page in same page below web page.
$('.closebutton').live('click', function(event){ $("#onclosetemp").dialog('open'); return false; });
can me this.
to show div popup, better can use jquery dialogue.
use below script open div popup using jquery given html mark-up. please dont forget reffer jquery & jquery ui script files. please see below url demo , more details.
<script> $(function() { $( "#onclosetemp" ).dialog({ autoopen: false, height: 300, width: 350, modal: true }); $('.closebutton').live('click', function(event){ $("#onclosetemp").dialog('open'); }); }); </script> <div id="onclosetemp"> --- --- </div> <li class="closebutton"><a href="#" class="bt btright" >close</a></li>
Comments
Post a Comment