Load HTML Content

HTML:

<body>
<div id="footer">Copyright by <a href="http://case.wikirex.com" target="_blank">wikirex.com</a> 2012</div>
</body>
 
 
Script:
$('footer').load('includes/footer.html #footer');
//Better to use ID
 
 
Result:
<footer><div id="footer">Copyright by <a href="http://case.wikirex.com" target="_blank">wikirex.com</a> 2012</div></footer>
//Target itsself will be included

2 thoughts on “Load HTML Content

  1. hello!,I love your writing very much! share we keep in touch extra about your post on AOL? I require an expert on this area to unravel my problem. May be that is you! Looking forward to look you. [url=http://www.cheap-archeage-gold.com/archeage-power-leveling.html]archeage power leveling[/url]

  2. Hi there! This post could not be written any better!
    Reading this post reminds me of my good old room mate!
    He always kept chatting about this. I will forward this post to him.
    Fairly certain he will have a good read. Thank you for sharing!

Comments are closed.