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>