jQuery to prepend URL in img src attribute
<p>I just need a jQuery snippet to do the prepend in img src , i.e</p>

<pre><code>&lt;img src='/img/picture1.jpg' /&gt;
</code></pre>

<p>The code snippet jQuery is to prepend this url</p>

<pre><code>http://cdn.something.com/ 
</code></pre>

<p>so after the snippet jQuery, it becomes like </p>

<pre><code>&lt;img src='http://cdn.something.com/img/picture1.jpg' /&gt;
</code></pre>

<p>Any help is greatly appreciated.</p>

<p>so far I wrote something like</p>

<pre><code>$().ready(function(){
     var cdn ='http://cdn.something.com';
   $('img').attrib('src', cdn);
</code></pre>

<p>});</p>

<p>However it is replaced the src rather than pre</p>
