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

228
Vistas
How to find all Input elements that have a specific value?

How to find all Input elements that have a specific value, e.g. "ABC" ? Both the JavaScript and its jQuery equivalent do not return any elements.

document.querySelectorAll('input[value="ABC"]'); 

$('input[value="ABC"]'); // .length is 0
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If the inputs value was set by js or the user, you have to check the inputs' value property and I don't believe there is a way to do that with a css selector.
You'll have to use good ole js

var $abc = $('input').filter((i,v) => v.value === "ABC");
about 4 years ago · Santiago Trujillo Denunciar
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