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

145
Vistas
Validate Fieldset on multipage form with jquery

I have a multipage form where I want to force any validation rules prior to allowing the user to move to the next section. I want to keep the method as generic as possible and was hoping I could simply call .validate based on the html markup rules.

Each page is divided into separate field sets.

The site is running bootstrap 4 and jquery.

I have the following method for shifting to the next page of the form;

function nextFormPage() {

var slidingOut = false;

$('#form > fieldset').each(function (key, value) {

    if ($(this).is(':visible')) {

        //if ($(this).validate()) {
            $(this).slideToggle();
            slidingOut = true;
        //}

        return;
    }

    if (slidingOut) {
        $(this).slideToggle();
        slidingOut = false;
    }
});

}

I have tried installing the jquery validation plugin, but this seems to want me to add the rules through javascript, whereas I would rather just validate from the basic html rules?

Does anyone have any ideas please?

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