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

251
Vistas
Prevent line break while writing input in html code

I want to save all inputs on my html with this jQuery code:

$("#replace").click(function() {
  $(".input").each(function() {
    $(this).after($(this).val());
    $(this).remove();
  });
});   

This is to that I can display them right in the browser.

What happens after saving is that all td elements appear in a new line. How can I prevent that?

<!--wrong-->
<td class="keylabel>Telephone</td>
<td>01234567890</td>

<!--expected output-->
<td class="keylabel>Telephone</td><td>01234567890</td>

Is there a better solution to store the data locally with just HTML, JS?

about 4 years ago · Santiago Gelvez
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