<script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/lin_search.js"></script> <script type="text/javascript"> var table = document.getElementById("table-1"); var input = document.getElementById("lin") input.onkeyup = function () { new Search(table, input) } </script>