I wanted to ask, how can i filter data using Jquery and grep?
Some example code:
var arr = ['11','21']
obj = $.grep(obj, function (element, index) {
return element.Id == 11;
});
This will return obj data with id of 11. But, how can i retrieve data from obj, when Id will be like arr array ?
So i wanted, to have obj with properties equal to Id 11 and 21 ?
Thank You.