how to make a dropdown list using json format compatible with jquery
问题 I have the following codes that works successfully with js but don't under jquery (precisely jquery mobile 1.4.5). let me describe it : In js folder I have json list that I put into a function function JsonList(){ var Food = //4 elements json format [ { "name": "Food1", "Glc": 2, "Lip": 0.2, "Prot": 0.5, "IG": 20 }, { "name": "Food2", "Glc": 4, "Lip": 1.2, "Prot": 0.7, "IG": 40 }, { "name": "Food3", "Glc": 5, "Lip": 0.32, "Prot": 0.76, "IG": 60 }, { "name": "food4", "Glc": 7.5, "Lip": 1.5,