Unable to complete "Removing Elements"


I'm unable to continue from the JQuery exercise called "Removing Elements":

My code behaves correctly, and removes the paragraph as expected. But I get an error messages saying "Oops, try again. Make sure you remove your <p> using the .remove() function.".

Here is my code from script.js:

    $('#one').after('<p>Something here</p>');
    var two = $('#two');
    var $p = $('p');

The only line I added for this specific lesson was this:


Does anyone have an idea why this error message occurs?



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