5. Removing Elements


#1

I think this question might have a bug. It's not accepting the following code on Mozilla or Chrome:

var $paragraph = $('

My Paragraph

');

$(document).ready(function() {
$('#one').after($paragraph);
$('#two').after($paragraph);
$($paragraph).remove();
});

It queries:

Oops, try again.
Make sure you remove your <p> using the .remove() function.

#2

You need to name what you have entered in as "paragraph" to just "p" so here was my code
$(document).ready(function() {
var $p = $("

Hello World

");
$('#two').after($p);
$("p").remove();
});