I have this function below and I need to append its result inside a div called test. How can i do it?
function(response) {
alert('Your name is ' + response[0].name);
}
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.
I’m guessing you have something like:
in your HTML.
Also, I’m guessing that you wish to append the value of
response[0].namebecause your function has no return statement.In which case: