I’m trying to append the data being called rather than replacing it but I’m not sure why .append isn’t working.
$('.incoming3').load('t3.html #test3').append;
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.
Well first of all
.append()is a function – you need to use parentheses after it, and supply it with a parameter telling it what to append. Second, you can’t just change the way.load()works by chaining.append()onto the end of it.Try this instead:
That is, use the
$.get()method to retrieve the data, wrap the data in a jQuery object and use the.filter()method to extract the bit you need, and append that bit to your element.