Jump to content
handemmet

Load Div content from one page to another.

Recommended Posts

Hi

I'm trying to load the content of a div from one html page to another. It works in FireFox and IE but not in Chrome. I used the following in the Head:
<script src="js/jquery-1.10.2.min.js"></script>
<script>
$(document).ready(function(){
$('#timetable').load('workout.html #printview');
})
</script>
It grabs the DIV 'printview' from the 'workout.html' page and places it in the DIV 'timetable'
<div id="timetable"></div>
Can anybody see why it won't show up in Chrome?
Thanks for your help
Emmet

Share this post


Link to post
Share on other sites

Good morning handemmet,

 

Have you got a live link for us?

 

Kind regards,

 

Lab.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...