title: jquery add variable in img src
body: <p>I have some images created with php and i want to put each of them inside a li. Here is my working code :</p>
  
  <pre><code>        for ( i = 0; i &lt; MaxNum; i++) {
              $('li#' + i + '').html('&lt;img src="http://www.address.com/somephp.php?Num=1" /&gt;')
          }
  </code></pre>
  
  <p>All i want to do now is put the i variable in the the image source in order to have something like this:</p>
  
  <pre><code>            for ( i = 0; i &lt; MaxNum; i++) {
              $('li#' + i + '').html('&lt;img src="http://www.address.com/somephp.php?Num="+i /&gt;')
  </code></pre>
  
  <p>This code is not working. Is it possible to that with this way?</p>