on dom ready append html element using jquery
<p>I have legacy database with holds beside rest html source which is used by a client to render some page snippets. I want to fetch all images inside <code>#mainNewsBody .news p</code> and to add link to that image <code>rel='superbox[image]'</code></p>

<p>Now it's </p>

<p><code>&lt;img src="http://www.mysite.com/images/DSCF1087.JPG" /&gt;</code> and it should be </p>

<p><code>&lt;img src="http://www.mysite.com/images/DSCF1087.JPG" rel='superbox[image]'/&gt;</code></p>

<p>how can I achive this using jquery on dom ready?</p>

<p>Thanks everyone.</p>
