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 #mainNewsBody .news p and to add link to that image rel='superbox[image]'
Now it’s
<img src="http://www.mysite.com/images/DSCF1087.JPG" /> and it should be
<img src="http://www.mysite.com/images/DSCF1087.JPG" rel='superbox[image]'/>
how can I achive this using jquery on dom ready?
Thanks everyone.
1 Answer