Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

221
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!