-1

Is there a way that we can include an HTML file into another HTML file with jQuery or Javascript? Thank you.

Lan Mai
  • 345
  • 3
  • 15

1 Answers1

1

Use jQuery .load(). To load import.html into another file, just use:

$("#myElement").load("import.html");
yainspan
  • 4,191
  • 3
  • 26
  • 48