Mushtaq Ali Mushtaq Ali - 1 year ago 126
jQuery Question

Adding html file to div tag jquery

I am trying to add html page to

tag using jQuery. I tried using load, get function but that did not work. Any advice how this can work?

I am learning and working on
with just some basic knowledge of jQuery, please advise.

I am using jQuery 3.1

<div id="flipbook">
<div class="hard"> Turn.Js </div>
<div class="hard"></div>
<div id="page1"> </div>
<div> Page 2 </div>
<div> Page 3 </div>
<div> Page 4 </div>
<div class="hard"></div>
<div class="hard"></div>

<script type="text/javascript">
width: 400,
height: 300,
autoCenter: true

$(function () {
$.get("page1.html", function(data) {

Answer Source

Assuming you are getting data back from page1.html, try:

$.get("page1.html", function(data) {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download