title: Set src attribute of img tag with javascript
body: <p>I have the following elements in a html document</p>
  
  <pre><code>&lt;div id="u11" class="ax_default image" data-label="image1"&gt;
      &lt;img id="u11_img" class="img " src="images/image1_u11.png"&gt;
  &lt;/div&gt;
  
  &lt;div id="u23" class="ax_default image" data-label="image2"&gt;
      &lt;img id="u23_img" class="img " src="images/image2_u23.png"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to write a javascript onclick function for another element that set image2 <code>src</code> to image1 <code>src</code></p>
  
  <p>The problem is that ids are random so I cannot use them but fortunately I can use the <code>data-label</code> to get the external div objects with <code>$('[data-label=image1]')</code></p>
  
  <p>¿How can I set the src in the inner img?</p>