handemmet Posted September 13, 2013 Share Posted September 13, 2013 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 More sharing options...
Labtec Posted September 14, 2013 Share Posted September 14, 2013 Good morning handemmet, Have you got a live link for us? Kind regards, Lab. Link to comment Share on other sites More sharing options...
davej Posted September 15, 2013 Share Posted September 15, 2013 Interesting. Perhaps try $.get() http://api.jquery.com/load/ Link to comment Share on other sites More sharing options...
handemmet Posted September 16, 2013 Author Share Posted September 16, 2013 (edited) Got it working.....thanks. Edited September 18, 2013 by handemmet Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now