I have the following code which you’re able to see what I am trying to do is add the form code inside the form but because the form changes ID, I wanted to use closest();
$("#contentarea").closest("form").html("some code");
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.
Your code works if you choose jQuery in the left panel on your demo:
http://jsfiddle.net/Paulpro/zQC2Q/3/
You had it left as Mootools