the <script>
// This is the json which came
var json = '<?php echo $s;?>';
// Here parsim json
var data = JSON.parse( json );
// Here we get the desired property
alert( data.icestats.source.title );
</script>
<div id="div-name"></div>
the <script>
var myDiv= document.getElementById('div-name'),
json = '<?php echo $s;?>',
data = JSON.parse( json );
myDiv.innerHTML = data.icestats.source.title;
</script>
$('#div-name').html(data.icestats.source.title);
Find more questions by tags JavaScript
apparently not
I do not know)
I'm lower on the page created divco with the class .div-name and all - Nedra3 commented on June 8th 19 at 17:17
If Yes, then after
data = JSON.parse( json );
add:
$('.div-name').html(data.icestats.source.title);
And on the page with the div class-name should appear contents. - citlalli65 commented on June 8th 19 at 17:20