Get DD element value from other website?
-
I am looking for the best and server friendly method of geting DD element value echo’ed on my WordPress site, inside div.
I need to scrap 9.th
<dd>value</dd>
from other website, and I’ve had no success. This is the jQuery code I found online, but it doesn’t work.$(document).ready(function() { $.get("http://otherwebsite.com", function(data) { var resp = $(data); $("dd:eq(9)", resp).appendTo("body"); // dd:eq(9) for selecting 9.th DD value }); setTimeout(function() { location.reload(true); }, 10000); });
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get DD element value from other website?’ is closed to new replies.