There is, for example, the php page
echo "результат1"; echo "результат2"; and ajax request to it
$.ajax({ type: "POST", url: "editcodeoutput.php", data:"post="+id, success: function(result) { $('#note').val(result); } }); In this situation, both results will be sent to the value of #note , and how, for example, I insert the first echo into one field and the second into the second.
To get something like this
$.ajax({ type: "POST", url: "editcodeoutput.php", data:"post="+id, success: function(result) { $('#note').val(result); $('#enot').val(result2); } });