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

231
Views
How to set a Default Filter

When enter the page, I want to filter a default value before searching, i tried with onload , but i not sure how to work with onload and keyup together. Currently , the keyup filter function is works but i want to add a onload to let first times the page load with a default value filter.

HTML

<label>Search:<input type="search" id="searching" value="default-value"></label>

Script

<script>

$(document).ready(function(){
$("#searching").on("keyup", function() {
  var value = $(this).val().toLowerCase();
  $("#Table1body tr").filter(function() {
    $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
  });
});
});
</script>
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!