How to return an action (post a form) and a value from a jquery ajax request

How to return an action (post a form) and a value from a jquery ajax request

I' am calling it with this function 
$.post("buscaamigo.php", {queryString: ""+inputString+""}, function(data){



if(data.length >0) {



$('#suggestions').show();



$('#autoSuggestionsList').html(data);



}



});