Well what I want to do is send 2 variables js with value of an input by AJAX to a file that receives them, for example: $ _POST ['idReceptor']. If you sent a single variable it is sent well but I can not send 2.
var idEmisor = $("#idEmisor").val();
var idReceptor = $("#idReceptor").val();
$.ajax({
type: "POST",
url: "/chat/conversacion.php",
data: {"idReceptor="+idReceptor, "idEmisor="+idEmisor}