title: select image src inside a class
body: <p>I have the following list and I know the name of the class of the list</p>
  
  <pre><code>&lt;div id="something"&gt;
   &lt;ul&gt;
    &lt;li class="myClass1"&gt;
     &lt;img src="img/Ace.png"&gt;
    &lt;/li&gt;
   &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I would just like to know the src of that image so I can put it in the blank source of the other. But when I tried to alert it, the path is undefined.</p>
  
  <pre><code>  var newimage = new Image();
      newimage.src = $(this).find(".match1").attr("src");
      alert(myimage);
      $("#image0").attr("src",newimage.src);
  </code></pre>