title: Change Image SRC on condition
body: <p>Hey guys, I'm trying to display an image depending on a variable that's in my HTML. Let me explain further...</p>
  
  <p>I have this HTML</p>
  
  <pre><code>&lt;div class="container"&gt;
  &lt;span class="var"&gt;1&lt;/span&gt;
  &lt;img class="varimg" src="" alt="" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And I want jQuery to analyse the span.var text, then if it is: </p>
  
  <p>1: return "images/1.jpg"</p>
  
  <p>2: return "images/2.jpg"</p>
  
  <p>3: return "images/3.jpg"</p>
  
  <p>(there will be only 3...)</p>
  
  <p>and then inject it in the img src...</p>
  
  <p>Is it possible ? I've been trying but I'm still a newbie in jQuery...</p>
  
  <p>Thanks a lot in advance !</p>