not getting the hang of this at all
code will not go through
,
where am i going wrong pls
not getting the hang of this at all
code will not go through
,
where am i going wrong pls
HI not so sure but, the error is saying that you add more than one <p>
tag so try to remove one.
In the lesson they gave you that… @ednamodenocapes
$(document).ready(function() {
$('#one').after('<p>I done it!</p>');
});
then they aske you
2 create a new jQuery selector that targets the <div>
with the id #two
var $div = $('p')
3 Using after again, select the <p>
tag you created and move it after the <div>
with id #two
$('#two').after($('p'))
HOpe that could help you
$(document).ready(function(){
$('#one').after('<p>hello</p>');
$('#two').after('<p>world</p>');
var $text = $('hello');
$('#one').after($('p'));
var $text = $('world');
$('#two').after($('p'));
});