how to loop through a $.post callback function?
Here’s the code I would like to loop through….
$.post("p.php",{config: config1, test: test1}, function(data)
{
});
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.
You can use
$.eachmethod to loop through an array or objects. Following are the examples with array and object looping using$.eachmethod.Looping an array
Looping an object
As you mentioned in the comments the
responsecontains 4ptags and you need to append them to anlitag on the page, you can try this.