xyz.xhtml包含图片标签。点击该按钮应在同一页面中打开一个div,并将该内容显示为其他名为abc.xhtml的文件的
标签。
答案 0 :(得分:1)
I got the Solution.
You can use the following snippet to access the element from one HTML/XHTML file in another HTML/XHTML file.
function test_fun(){
$(function(){
$("#<id of the element in which you want to show to contents>").load("
<name_of_file> <#ID_of_Element_you_are_accessing>");
});
}
The space between name of file and ID of element is necessary.