Reputation: 6810
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");
DEMO http://jsfiddle.net/zQC2Q/
Upvotes: 0
Views: 666
Reputation: 141829
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
Upvotes: 1