Removing Elements


#1


$(document).ready(function() {
    
    var $p= $('p');
    
    $('#one').after($p)
    
    $('#two').after('<p>what\'s up</p>');
    $('$p').remove('<p>what\'s up</p');
    });

I have no idea what I am doing wrong. I've been stuck on this one and need some help. Please I need clarity


#2

this is causing the error..

if you remove \ from what\'s the error goes away


#3

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