Is it possible to use jQuery’s .load and stick the loaded content into a variable so I can use the variable and append it to something else later on?
Is it possible to use jQuery’s .load and stick the loaded content into a
Share
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, but this is unnecessary. Use the
$.getmethod to directly access the response instead.If you want to do both, (i.e. load the response into a div and use the returned data), you can use the callback on the
$.loadmethod similarly.