Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/07/2014, 10:33
Avatar de thedaket
thedaket
 
Fecha de Ingreso: junio-2011
Mensajes: 55
Antigüedad: 12 años, 9 meses
Puntos: 3
Respuesta: Datos enviados de formulario mediante alerta

Muy sencillo le colocas un atributo id a tu formulario ej: id="form-registro"

Ahora en jquery seria lo siguiente:

$("form-registro").submit(function(e){
e.preventDefault();
url = $(this).attr('action');
$.ajax({
url: url,
type: "POST",
success: function(r) {
alert('Mensaje enviado');
}
});
});


Y en esto en tu validacion en vez de un return true pondrias
$("form-registro").submit();

esto es una opcion rapida en el link que te deje vienen mas configuraciones
__________________
Sí AJAX quieres usar jQuery debes agregar...