I have web service which return json string like :
d={“main0ID”:”abc.es/main”,”main1ID”:”ah/main”}
I wanna append this to ul HTML control. How to iterate over json object string and append to ul?
Thanks…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you have ul like this
This will get the items from JSON and add to UL
Working sample : http://jsfiddle.net/tFpTu/4/
Always build a string and call the
htmlfunction only once instead of calling theappendfunction n times inside a loop