title: JQUERY Get Image title, then put to a element
body: <p>im confused how to put title attribute from "img" element to "a" element.. 
  pls, anyone can help me ?</p>
  
  <p>HTML :</p>
  
  <pre><code>&lt;div id="product" class="productbox"&gt;
  &lt;a href="..."&gt;&lt;img src="blablabla" title="12345"&gt;&lt;/a&gt;
  &lt;a href="..."&gt;&lt;img src="blablabla" title="qwerty"&gt;&lt;/a&gt;
  &lt;a href="..."&gt;&lt;img src="blablabla" title="rabbit"&gt;&lt;/a&gt;
  &lt;a href="..."&gt;&lt;img src="blablabla" title="kirby"&gt;&lt;/a&gt;
  &lt;a href="..."&gt;&lt;img src="blablabla" title="dragon"&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>jQuery :</p>
  
  <pre><code>function title_image(){   
  var img_title = $(".productbox a img").attr("title");
  $(".productbox a").attr("title",img_title);
  }
  $(document).ready(function(){
  title_image();
  });
  </code></pre>
  
  <p>Result from the code :</p>
  
  <pre><code>&lt;div id="product"&gt;
  &lt;a title="12345" href="..."&gt;&lt;img src="blablabla" title="12345"&gt;&lt;/a&gt;
  &lt;a title="12345" href="..."&gt;&lt;img src="blablabla" title="qwerty"&gt;&lt;/a&gt;
  &lt;a title="12345" href="..."&gt;&lt;img src="blablabla" title="rabbit"&gt;&lt;/a&gt;
  &lt;a title="12345" href="..."&gt;&lt;img src="blablabla" title="kirby"&gt;&lt;/a&gt;
  &lt;a title="12345" href="..."&gt;&lt;img src="blablabla" title="dragon"&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want result like this :</p>
  
  <pre><code>&lt;div id="product"&gt;
  &lt;a title="12345" href="..."&gt;&lt;img src="blablabla" title="12345"&gt;&lt;/a&gt;
  &lt;a title="qwerty" href="..."&gt;&lt;img src="blablabla" title="qwerty"&gt;&lt;/a&gt;
  &lt;a title="rabbit" href="..."&gt;&lt;img src="blablabla" title="rabbit"&gt;&lt;/a&gt;
  &lt;a title="kirby" href="..."&gt;&lt;img src="blablabla" title="kirby"&gt;&lt;/a&gt;
  &lt;a title="dragon" href="..."&gt;&lt;img src="blablabla" title="dragon"&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is the link i write on jsfiddle 
  <a href="http://jsfiddle.net/khen/4wzLZ/1/" rel="nofollow">CODE</a></p>
  
  <p>Thanks</p>