Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

144
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda