Created
April 12, 2015 18:58
-
-
Save cmivxx/e110fed65c7d68bc312f to your computer and use it in GitHub Desktop.
Get Remote Div from external site with JQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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