Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#searchInput').on('change, input', function() {
- selectOptionFilterVehicle();
- var searchTerm = $(this).val().toLowerCase().trim();
- $('#vehicleTable tbody tr').each(function() {
- var lineStr = $(this).text().toLowerCase();
- if (lineStr.indexOf(searchTerm) === -1) {
- $(this).hide();
- } else {
- $(this).show();
- }
- });
- });
Add Comment
Please, Sign In to add comment