I want to be able to filter my table, the table is like this
name | date | agencyID
test 2016-03-17 91282774
test 2016-03-18 27496321
I want to be able to have a dropdown with all the 'agencyID' and when I select it only show the table rows with this agencyID in. I have a similar thing where you can search for anything in a input type text.
This is how that part works, is there any similar way I can do this with a select dropdown?
(function ($) {
$('#filter').keyup(function () {
var rex = new RegExp($(this).val(), 'i');
$('.searchable tr').hide();
$('.searchable tr').filter(function () {
return rex.test($(this).text());
}).show();
})
}(jQuery));
I am open to implementing angularJS if this is a better alternative