title: How to reload images by class name - Javascript or Jquery
body: <p>How can I reload images that have a same class name ?</p>
  
  <p>I tried this but it doesn't refresh the images:</p>
  
  <pre><code>&lt;img class="refresh" src="http://www.w3schools.com/jsref/bulbon.gif"&gt;&lt;/img&gt;
  &lt;img class="refresh" src="http://www.w3schools.com/images/colorpicker.png"&gt;&lt;/img&gt;
  
  // javascript: //
  a=document.getElementsByClassName(refresh);
  for(var c=0;c&lt;a.length;c++)a[c].src=a[c].src;
  </code></pre>
  
  <p>Hope the question is clear</p>