Jump to content

Load Div content from one page to another.


handemmet

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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...