I use the jQuery UI modal window. It loads immediately with the whole page. Question: Is it possible to make it load only after clicking on a block, and not together with the whole page?

div class = "ul-dialog ...> </ div> open before clicking on the block"

Jquery:

$('#user-panel').dialog({ autoOpen:0 }); $('.user-panel').click(function(){ $('#user-panel').dialog('open'); }); 

html:

 <div class="user-panel"> Див, по клику на который и должен загружаться <div class="ui-dialog"> </div> <div id="user-panel"> Модальное окно </div> 
  • Why do you need this? it is still not visible on the page - Sergey Konovalov

0