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

253
Vistas
<input> element value attribute does not match control contents?

I used jQuery clone() to copy a <div>.

The code then clears any <input> values in the clone before inserting it back into the DOM using element.val('').

However, after clearing the <input> values, the value attribute of the new element still has the copied value.

This is demonstrated in the screenshot below. The selected <input> element shows no text. However, you can see in the markup that the value attribute still has the value from the original element that was cloned (shown in the previous row).

enter image description here

How can the value attribute not match what is in the textbox?

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