开发者

Html code inside jquery dialog

how can I load HTML code in separate开发者_JS百科d HTML file into dialog in another file. when I click into anchor in one.html page, dialog appears containing HTML code exist in another HTML page.

I didn't make the code that appear in the dialog in the same page, because I will use this code into another places.


you can read your code using ajax

jQuery.get('second.html', function(html){
    $('#dialog').html(html).dialog();
})

This should work using jQuery and jQuery UI for dialog

Hope this helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜