 <p>You need target paragraph thus use <a href="http://api.jquery.com/prev/"><code>.prev()</code></a> then use <a href="http://api.jquery.com/append/"><code>append()</code></a></p> <pre><code>$('div.roundbox').prev('p').append('2015-2016'); </code></pre>