5. Removing elements - HELP


#1

I've tried a few variations. It's removing the paragraph tag, so why can't I pass the lesson?

$(document).ready(function(){

    var $para = $('<p></p>');

    $('#one').after($para);
    $('#two').after($para);
    $para.remove();
});

#4

Hi Eddyerb,

Line 3: You should put some text between your <p></p> tags
Line 6: You need to select p, so change it to this: ...after($('p'));
Line 7: ↑ same thing as above. Change $para.remove(); to $('p').remove();

...and you should get passed! :slightly_smiling: