Advertisement
jDanek

Filter

Jan 24th, 2022
1,192
241 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <input class="inputsmall right" id="plugin-filter" type="text" placeholder="Filter..." autofocus>
  2.  
  3. <script>
  4. $(document).ready(function () {
  5.     $("#plugin-filter").on("keyup", function () {
  6.         var value = $(this).val().toLowerCase();
  7.         $("table.plugin-list tr").filter(function () {
  8.             $(this).toggle($(this).find("td:first-child h3").text().toLowerCase().indexOf(value) > -1)
  9.         });
  10.     });
  11. });
  12. </script>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement