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

164
Visualizações
How to keep my rows added after page reload?

I have a multi Step form with a progress bar, where i added an editable table, everything works fine except the "add row" button, it refreshes the page and i lose all the data of the table, and the new row doesn't show up after the reload.

When i test this code in a separate html file it works perfectly, but when i insert it into the multi step form it doesn't work

  $(".add-row").click(function(){
   
    $("#editableTable").find("tbody").append("<tr><td data-field='name'></td><td data-field='name'></td><td data-field='name'></td><td data-field='name'></td><td><a class='button button-small edit' title='Edit'><i class='fa fa-pencil'></i></a> <a class='button button-small' title='Delete'><i class='fa fa-trash'></i></a></td></tr>");

  });

                          <div class="row">
                            <div class="col-md-12">
                              <br>
                              
                              <button class="btn btn-default pull-right add-row"><i class="fa fa-plus"></i>&nbsp;&nbsp; Add Row</button>
                       
                          </div>
                          </div>
                        
                          <div class="row">
                            <div class="col-md-12">
                              <table class="table table-bordered" id="editableTable">
                                <thead>
                                  <tr>
                                    <th>Expected results</th>
                                    <th>Perimeter</th>
                                    <th>Quantity</th>
                                    <th>Price</th>
                                    <th>Edit</th>
                                  </tr>
                                </thead>
                                <tbody>
                                 
                                </tbody>
                              </table>
                            </div>
                          </div> 
                        </div>
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