Sorry this is a duplicate from here asked in SO but I'm new to this so I would like to know how to do it?
This is my ajax call:
$("#btnprocess").click(function () {
$.ajax({
type: "POST",
url: "Default.aspx/GetFilenames",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
alert(response.d[0]);
alert(response.d[1]);
}
});
});
Individually I'm able to get the response but I need to loop them.
Can anyone say me how do I do this?