jQuery: Load Modal Dialog Contents via Ajax

前端 未结 6 2010
天涯浪人
天涯浪人 2020-11-27 03:27

Currently my Modal Dialog is like this


 
  

        
6条回答
  •  春和景丽
    2020-11-27 03:40

    Check out this blog post from Nemikor, which should do what you want.

    http://blog.nemikor.com/2009/04/18/loading-a-page-into-a-dialog/

    Basically, before calling 'open', you 'load' the content from the other page first.

    jQuery('#dialog').load('path to my page').dialog('open'); 
    

提交回复
热议问题