Chikwado Posted January 18, 2015 Share Posted January 18, 2015 (edited) Can some explain to me the action of this jquery code, There are one thing I want do in my webpage that is: how to call 2 asynchronized files especially : content1.html and content2.html to be diplay in my webpage. Example: <div id="content1.html"></div> <div id="content2.html"> </ div>I made the following code which I do not even understand its action. <div id="log"></div> <script> $(document).on ("mousemove" , function(event) { $("#log").text("pageX: " + event.pageX + ", pageY: " + event.pageY);}); </script> some one help how to call 2 asynchronized file using jquery. Edited January 18, 2015 by Chikwado Link to comment Share on other sites More sharing options...
Ingolme Posted January 18, 2015 Share Posted January 18, 2015 You can put content from a file into an element using jQuery's load() method. 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