I have a question about displaying results using ajax. I have part of the code below.
$.ajax({
type: "POST",
url: "Service.asmx/GetMethod",
data: '{ "field": ' + id,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(results) {
var html = results.d[0];
$(contentElement).html(html);
}
});
Need to display the data in d[0]. It consists of 3 pieces of data - product id, product name, product description. I need to figure out a way to first just display the data and then try to display using (css or html). Please help
Thanks,
SA