i need help to add element on html using jquery, i'm new on this territory, i've tried several method and failed
here's the HTML
<div id="relatedpostspro_0_1" class="rpp rpp_isotope" style="width:auto;">
<div class="rpp_container">
<legend>Related Posts</legend>
<div>...</div>
<div>...</div>
<div>...</div>
</div>
</div>
and i want to add this small piece
<div class="stripe-line"></div>
so it will result to:
<div id="relatedpostspro_0_1" class="rpp rpp_isotope" style="width:auto;">
<div class="rpp_container">
<legend>Related Posts</legend>
<div class="stripe-line"></div>
<div>...</div>
<div>...</div>
<div>...</div>
</div>
</div>
using these 2 jquery from first 2 answer
$('.rpp_container').append('<div class="stripe-line"></div>');
and
var line = $('<div />').addClass('stripe-line');
line.appendTo('.rpp_container');
resulting the line added at the bottom, not right after <legend>Related Posts</legend>
Thanks a lot!