return_value:xx
las x son el numero de registro de la consulta
bien , por ahora tengo este codigo que me devuelve la consulta en un alert:
Código Javascript:
Ver original
<script> $("#formcontract").submit(function(e) { var url = "autorizar.php"; // the script where you handle the form input. $.ajax({ type: "POST", url: url, data: $("#formcontract").serialize(), // serializes the form's elements. success: function(data) { alert(data); // show response from the php script. } }); e.preventDefault(); // avoid to execute the actual submit of the form. }); </script>
Como podria hacer q cuando me respondiera return_value:"el numero que fuera" pudiera pintar una alerta en html tipo:
Código HTML:
Ver original
Gracias