4/14 why this code isn't working


#1


    var $p=$("<p>I'm a paragraph!</p>");
    $("#one").after($p);
    var two=$("#two");
    two.after.($('p'));


#2

Missing persoectuve, one suspects, It really necessary to create a variable?

$('#one').after('<p>Bob's yer uncle</p>');

In the second call to .after(), we have a paragraph node to target...

$('#two').after($('p'));

#3

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