how to append json data to the div am having image and date,name,and message.For differnt numbers theri corresponding messages am having how to apppend in the div.help me.thankyou.
What I have tried:
$(document).ready(function() {
$(document).on("click","#msg", function(){
var json=null;
$.ajax({
async: false,
global: false,
type: "POST",
url: "http://ivr.callxl.com/CallerPopWebServices/OffLineMessages?Devicetype=web&timezone=+05:30&&companyname=gmail72256&date=2016-04-2015:49:40&role=above&noofrecords=5",
data: '',
dataType: "json",
success: function( data, textStatus, jqXHR) {
console.log(data);
json=data;
for(var i=0;i<json.length;i++)>
{
}
},
// If there was no resonse from the server
error: function(jqXHR, textStatus, errorThrown){
alert(jqXHR.responseText);
console.log("Something really bad happened " + textStatus);
$("#errorResponse").html(jqXHR.responseText);
},
});
});
});