开发者

Html code inside jquery dialog

开发者 https://www.devze.com 2023-03-21 09:48 出处:网络
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.

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

精彩评论

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