Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

129
Vistas
Send multiple forms via JQuery with one button

I am making a website with ASP.NET Core 3.1 and I have a couple forms that are updating my database. Every row has their on form and every form has the class "dataFromMenu". I want one button that submits them all at the same time, I am using JS/JQuery to submit the forms, this is what Ive come up with:

function saveAllMenu() {
var temp = document.getElementsByClassName("dataFormMenu").length;

for (var i = 0; i < temp; i++) {
    document.getElementsByClassName('dataFormMenu')[i].submit();

    console.log(i);
}
}

When I run this nothing happens, If I switch the [i] to a 1 the first row gets switched and same for the others. But not with the [i], the console logs 0, 1, 2 on the button click.

Thanks beforehand! Best regards Max

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda