Hello everybody,
Let’s say I have some objects:
var apple = new Object();
apple.taste = "acid";
apple.color = "red";
var berry = new Object();
apple.taste = "acid";
apple.color = "purple";
//more fruits
var myArray = new Array(apple, berry, fruit1, fruit2, ...)
Does anybody have an idea how to search the strings in the array? Let’s say the user types “ci” to the search field, searching in “taste” (it would be marked). Now it should return the objects which have the string “ci” in the taste, as:
apple - acid - red
berry - acid - purple
…
I would really appreciate any ideas, advices, tutorials, codes, simply ANYTHING! Thanks a lot!
Poco