hi
i recently working on a project
i need to create hard code first of list of element
something like the below of code but i not sure if i declare this array correctly?
var it = [{ “id”: “1001”, “type”: “Regular” },{ “id”: “1002”, “type”: “Chocolate” },{ “id”: “1002”, “type”: “Blueberry” },{ “id”: “1004”, “type”: “Devil’s Food” }]
secondly, i want to show all the data that have same id…so how should do ?
must i for loop and if loop…cause i know need to if loop…is it meaning using continue statement
i need to show in when i click on a link and those with the same id will display in the dialog
can show any example
PS…reply asap!!!
thanks!!!