First you need to find out if there is a wrap element where you want to enter this content. In jquery you should use a function:
$('.inner').append('<p>Test</p>');
Suppose this was your dom element:
<h2>Greetings</h2> <div class="container"> <div class="inner">Hello</div> <div class="inner">Goodbye</div> </div>
Any items with a class of ".inner" will now be added with a paragraph with the word "test"
<h2>Greetings</h2> <div class="container"> <div class="inner"> Hello <p>Test</p> </div> <div class="inner"> Goodbye <p>Test</p> </div> </div>
Check out the jquery documentation to find out more: http://api.jquery.com/append/
source share