TAG
CSS
JavaScript
Result
Run
License
<div class="box"> <h2>I am DIV's Title</h2> </div> <p class="paragraph">I am the sibling of Div.(Please click me!)</p>
.box { border: 1px solid #FF0000; }
$(function() { $(document).click(function() { $(".paragraph").appendTo(".box") .text("I am DIV's paragraph."); }); });
Console
expand_less
License
License
by DevDic
Close