I have a JSON filed named items.json. I need to create a small search box in which I can input the name OR the category and perform a live search as I type. The return should be:
If I search for AXE it should display all items as I type that start with AXE. If I search for Hygene it should list all products under that category.
So basically it should be a HTML field, with a live search field, that gets the data from a JSON file via Ajax. If I could use PHP with this too, that would be great.
[
{
"product": "132431",
"productName": "AXE Body Spray",
"categoryName": "Hygene"
},
]
If you have any ideas I would be forever grateful. I'm really bad at this, and the more specific the better.
Both ideas on how to implement either this: http://blog.comperiosearch.com/wp-content/uploads/2012/06/instantsearch.html or jQuery Autocomplete. I've spent hours reading through the docs but I'm doing something wrong, I'm not experienced enough.