Removing element. What is wrong?


#1


$(document).ready(function() {
   $('#one').after('<p>Hello!</p>');
   var $p = $('p');
   $('#two').after($p);
    $($p).remove();    
});

what is wrong with this? it is working but I'm getting  an alert: Opps try again. Why?


#2

You have to use ('p') for the website.


#3

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