- function build_PastDestinations()
{ var tablebody = "<tbody>";
$.getJSON("phpscripts/getpastdestinations.php",{},function(data)
{
$.each(data,function(key,val)
{
tablebody += "<tr><td>" + val.Address + "</td></tr>";
});
});
return tablebody;
}
Hi there
I have this function that isn't working. as soon as it get to the getJSON bit it goes straight to return tablebody;
can anyone shed any light?
Ian