I am developing a web application using MEAN stack which contains 1 table(bootstrap) with 2 column and multiple rows. Column 1
will have data for every single row but not necessary for Column 2
.
I want to put a filter like Mapped
(show rows with values in both column) ,UnMapped
(show rows with value in only first column) and All
(show all rows). The filters will be given as option in drop down as:
<select class="selectpicker form-control">
<option value="All">All</option>
<option value="Mapped">Mapped</option>
<option value="UnMapped">Un-Mapped</option>
</select>
I tried different solutions to filter table but unable to figure out solution for above scenario. Please Help.
Here is the JS Fiddle: