EloquentStudio / filter.js

Complete solution for client side filtering and rendering using JSON data
http://eloquentstudio.github.io/filter.js
MIT License
665 stars 183 forks source link

How to filter by multi field with the same value? #163

Open erwandy92 opened 6 years ago

erwandy92 commented 6 years ago

Hello, I'm wondering how to get the filter by using the criteria like this: FJS.addCriteria({field: ['A', 'B'], ele: '#ab_filter', all: 'all'});

Is it possible to have multi fields on it? Thanks

erwandy92 commented 6 years ago

I just found the solution: FJS.addCriteria({field: 'A', field: 'B', ele: '#ab_filter', all: 'all'});

Thank you for providing us such a great js filter. I learned a lot of js spontaneously from here.