Skip to content

Instantly share code, notes, and snippets.

@cmivxx
Created April 12, 2015 18:58
Show Gist options
  • Select an option

  • Save cmivxx/e110fed65c7d68bc312f to your computer and use it in GitHub Desktop.

Select an option

Save cmivxx/e110fed65c7d68bc312f to your computer and use it in GitHub Desktop.
Get Remote Div from external site with JQuery
<html>
<head>
<title>JQ Call Test / Scrape</title>
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
// Freeze Blade from TRU
$('#fb-tru').load('http://www.toysrus.com/product/index.jsp?productId=24821216 #price');
});
</script>
<b>Sample Call for Skylanders Price:</b><br /><br />
<ul>
<li><div class="name">Swap Force - Freeze Blade</div> | <div id="fb-tru"></div></li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment