Tsallaka zuwa abun ciki
Justice Tech School

Project: Live Filter

Filter rows as you type.

Example
$("#q").on("input", function () {
  var v = $(this).val().toLowerCase();
  $("#t tr").each(function () {
    $(this).toggle($(this).text().toLowerCase().indexOf(v) > -1);
  });
});

Exercise

Show or hide.

$(this).(cond)

Quiz Test

What does toggle(bool) do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.