$.getJSON("Index/Locations_By_Ratings",function (data) {
$('#LocationsContainer').html('');
for (var i = 0; i < data.length; i++)
{
$.getJSON('Index/Get_Board_Type',{id:data[i].board_type},function (board_type) {
var Board = board_type['board_types'];
});
$('#LocationsContainer').append('<div class="LocationBox">\
<div class="left">\
<div class="LocationRow"><b>Board Type</b> : '+Board+'</div>\
<div class="LocationRow"><b>Area</b> : '+data[i].location+'</div>\
</div>');
}
});
in first call iam getting board_types id , in second call iam getting board type name using first call board_types id , and i want to print var Board.