-1

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

Lan Mai
  • 365
  • 1
  • 5
  • 18

1 Answers1

1

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

$("#myElement").load("import.html");
yaakov
  • 4,568
  • 4
  • 27
  • 51