title: Display text based on drop down selection (code works on jsfiddle but not website?)
body: <p>I am having issues with this code somewhere but can't figure it out. <a href="http://jsfiddle.net/2ukyA/39/" rel="nofollow">Here is the jsfiddle link</a></p>
  
  <pre><code>document.getElementById('email-list').onchange = function() {
      var i = 1;
      var myDiv = document.getElementById(i);
      while(myDiv) {
          myDiv.style.display = 'none';
          myDiv = document.getElementById(++i);
      }
      document.getElementById(this.value).style.display = 'block';
  };
  </code></pre>
  
  <p>Works fine on there but I can get it to work on either of two different websites local on wamp or live. Am I missing something?</p>