クライアントがいくつかのページスニペットをレンダリングするために使用する、残りの html ソースの横に保持されているレガシーデータベースがあります。内部のすべての画像を取得#mainNewsBody .news p
し、その画像へのリンクを追加したいrel='superbox[image]'
今は
<img src="http://www.mysite.com/images/DSCF1087.JPG" />
そしてそれはあるべきです
<img src="http://www.mysite.com/images/DSCF1087.JPG" rel='superbox[image]'/>
DOM Readyでjqueryを使用してこれを達成するにはどうすればよいですか?
みんな、ありがとう。