You can use text()or html()to set the contents of the desired item div. Try the following:
<div class="bas">Write here(title)</div>
$.ajax({
type: "GET",
url: MY,
dataType: 'json',
success: function(msg) {
$('.bas').text(msg[0].Write);
}
});
Please note that using dataType: 'json'jQuery will deserialize the answer for you, so you do not need to manually call JSON.parse.
source
share