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

103
Views
Si la condición no se está validando

Esta es una función para verificar si los datos de entrada solo contienen valores numéricos

 <input type="text" class="form-control" placeholder="Search &amp; enter" id='dtablesearch' onkeyup="searchcollum()"/> const searchcollum = () =>{ let filter = document.getElementById('dtablesearch').value.toUpperCase(); if (/^\d+$/.test(filter)==true){ let dtable = document.getElementById('zero_config'); let tr = document.getElementsByTagName('tr'); for (var i=0; i<tr.length; i++){ let td = tr[i].getElementsByTagName('td')[2]; if (td){ let txtvalue = td.textContent || td.innerHTML; if (txtvalue.toUpperCase().indexOf(filter)>-1){ tr[i].style.display = ""; }else{ tr[i].style.display = "None"; } } } } }

La condición no se vuelve verdadera como resultado incluso cuando ingreso 16 en la entrada...

Alguna sugerencia ??

about 4 years ago · Juan Pablo Isaza
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!