I can not control the focus of the form and the validation of the fields

0

I am in the following situation, I have three forms, which are displayed through the click event of the buttons associated with them, I disable the buttons and try to validate the fields of each form, before they are shown, has an image that disappears when button, but when I click the button on some form, it comes back and enables the buttons again. I need to keep track of the submit buttons for each form and show both even when it goes into validation, but that's not happening.

1) Form:

<div class="container-links">                                                                 
      <a class="btn btn-1" id="btn-reg1">Cliente 1</a> 
      <a class="btn btn-2" id="btn-reg2">Cliente 2</a>
      <a class="btn btn-3" id="btn-reg3">Cliente 3</a>                                                            
 </div> 
 <div class="imagem"><img src="images/pessoa.jpg"></div>
 <form id="pesquisadorForm" method="post">
     <div class="form-group                                               
       <input type="text" name="nome" placeholder="Nome completo"                    class="form-control">                                                                                                                                                                                                                                                                                                                                                                        
     </div>                                                 

     <div class="form-group">
        <input type="text" name="cpf" placeholder="CPF" class="form-control">                                                                                                                         
     </div>

     <div class="form-group">
       <input type="text" name="fone"  placeholder="Telefone" class="form-control">                                                                                                                         
    </div>

    <div class="form-group">
      <input type="text" name="email" placeholder="Email" class="form-control">                                                                                                                          
    </div>

    <div class="form-group">
        <input type="text" name="instituicao" placeholder="Institui&ccedil;&atilde;o" class="form-control">                                                                                                                         
    </div>
 <div class="container-fluid">
    button type="submit" class="btn btn-primary btn-block" name="btnPqdr" id="btnPqdr">Salvar Informa&ccedil;&otilde;es</button>                                                                            
 </div>                                                                                                                                                  
 </form>

2) Form

<form method="post" class="registration-form">
<div class="form-group">                                          
     <input type="text" name="nome" placeholder="Nome completo" class="form-control" >
</div>                                                            
<div class="form-group">                                        
  <input type="text" name="ocupacao" placeholder="Ocupa&ccedil;&atilde;o" class="form-control">
</div>
<div class="form-group">                                        
 <input type="text" name="idade" placeholder="Idade" class="form-control">
</div>                              
<div class="form-group">                                        
  <input type="text" name="cidade" placeholder="Cidade" class="form-control">
</div>
<div class="form-group">                                        
  <input type="text" name="uf" placeholder="UF" class="form-address form-control" id="form-address">
</div>
<div class="container-fluid">
     <button type="submit" class="btn btn-primary btn-block">Salvar Informa&ccedil;&otilde;es</button>                              
</div>
</form>
    
asked by anonymous 03.08.2016 / 21:16

0 answers