I have 2 HTML files, suppose a.html
and b.html
. In a.html
I want to include b.html
.
In JSF I can do it like that:
<ui:include src="b.xhtml" />
It means that inside a.xhtml
file, I can include b.xhtml
.
How can we do it in *.html
file?
Best Answer
In my opinion the best solution uses jQuery:
a.html
:b.html
:This method is a simple and clean solution to my problem.
The jQuery
.load()
documentation is here.