Jump to content

Hansiebebe

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Hansiebebe

  1. Hi,

    I am using this script, and the filter works fine.

    But i also would like to highlight the text , is this possible in one function ?

     

    <script>
    $(document).ready(function(){
    $("#sInput").on("keyup", function() {    var value = $(this).val().toLowerCase(); 
        $("#grepobody tr").filter(function() {
          $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
        });
      });
    });
    </script>

     

×
×
  • Create New...