How to return multiple data using jquery, json, ajax and php.
$.ajax({
url:'ajax.php',
type:'post',
data:{function:'postAnswer', questionID:$('#questionID').val(), answer:$('#answer').val()},
success:function(data)
{
alert(data);
location.reload();
}
});