title: change html value of class
body: <p>What i'm trying to do is to change the value of a specific column by jQuery. I only know the name of the column, but the position of the column is not always the same.</p>
  
  <p>Demo: <a href="http://jsfiddle.net/4MJjU/" rel="nofollow">http://jsfiddle.net/4MJjU/</a></p>
  
  <p>This code is working, but is this the best way to check and to change the value?</p>
  
  <pre><code>var IDcolumns = document.getElementsByClassName('column-'+positionID); 
    for (i=0;i&lt;IDcolumns.length;i++) 
    { 
        switch(IDcolumns[i].innerHTML){
        case "yes":
              //Just as example: 
              $(IDcolumns[i]).html('&lt;img src="image.png" /&gt;');
              break;
        case "no": 
              $(IDcolumns[i]).html('&amp;nbsp;');
              break;
    }
  }
  </code></pre>
  
  <p>The other code in jsfiddle (show/hide columns) is for something else.</p>