05/14 Removing Elements


#1


https://www.codecademy.com/en/courses/web-beginner-en-v6phg/0/5?curriculum_id=50a3fad8c7a770b5fd0007a1#


My code works and the

is no longer on the screen, but I keep getting an error message saying "Oops, try again. Make sure you remove your

using the .remove() function."


$(document).ready(function() {
    var $para = $("<p>This is text</p>");
    $('#one').after($para);
    $('#two').after($para);
    $($para).remove();
});


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.