5.Removing elements


#1

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

the removing didn't work,Oops, try again. It looks like your <p> is still part of your HTML document. Check the Hint if you need help!


Removing Elements: "Make sure you remove your <p> using the .remove() function."
#2

Why is this outside your function ? add it in the function


#3

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