Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/05/2016, 08:20
Avatar de berkeleyPunk
berkeleyPunk
 
Fecha de Ingreso: febrero-2013
Ubicación: México :C
Mensajes: 565
Antigüedad: 11 años, 2 meses
Puntos: 22
De acuerdo Respuesta: AJAX jQuery no reconoce mi formulario

Me respondo a mí mismo.

Si tenemos varios formularios, sólo hacer lo siguiente:

Código Javascript:
Ver original
  1. $("#mi_forma_1, #mi_forma_2").on("submit", function(e) {
  2.     e.preventDefault();
  3.     var datos = $(this).serializeArray();
  4.     $.ajax({
  5.        //...
  6.     });
  7. });