[jQuery] Re: Javascript search library

2009-03-05 Thread ricardobeat
Maybe you can use jQuery's filter method: $(JSONObject).filter(function(){ return this.cactus = 'green' && !this.water; }); On Mar 4, 11:00 pm, Khai wrote: > I have a collection of DIVs (or a JSON array).  Is there a javascript > library that can search through a JSON array and return a co

[jQuery] Re: Javascript search library

2009-03-05 Thread Nicolas R
Khai, perhaps this may be useful to you: http://code.google.com/p/jdatastore/ If you find it excessive, perhaps just the filter method is what you're after: http://code.google.com/p/jdatastore/source/browse/trunk/store.js#375 On Mar 5, 4:00 am, Khai wrote: > I have a collection of DIVs (or a JS