Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

on keyup jquery for search php on basis of class name

// Jquery searching in table TD TR without DB (Front-end)
    $("#clientSearch").keyup(function() {
      var value = this.value.toLowerCase().trim();
      $("table tr").each(function (index) {
          if (!index) return;
          $(this).find("td").each(function () {
              var id = $(this).text().toLowerCase().trim();
              var not_found = (id.indexOf(value) == -1);
              $(this).closest('tr').toggle(!not_found);
              return not_found;
          });
      });
    });
 
PREVIOUS NEXT
Tagged: #keyup #jquery #search #php #basis #class
ADD COMMENT
Topic
Name
3+3 =