0
I’m trying to catch a DIV
of this page .
To DIV
is named after .similar-artists
. I want to play in the DIV
calling for #rock
, but nothing works. Below the code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#rock").load("http://pipocaplayfm.com/artist/5216/Calvin+Harris .similar-artists ");
});
</script>
</head>
<body>
<div id="rock">
</div>
</body>
</html>
You are developing a website as a static page, using HTML ONLY or are developing dynamically, with Javaee, PHP, Javascript?
– Tiago Boeing
@Dynamic tiagoboeing with javascript and php. I just need to understand how I make it work $("#div1"). load("demo_test.txt #P1"); as in link : https://www.w3schools.com/jquery/jquery_ajax_load.asp
– jhonatan santos
You can do this using PHP itself.
– Sam