title: Show content on and off with Javascript
body: <p>What I want to do is, show a some content on and off using css or javascript. not jQuery, the reason is I'm having some jQuery clases and the script below doesnt render. Spent hours trying to find the reason, but couldnt. </p>
  
  <p>I have 2 questions. </p>
  
  <p><strong>Question 1</strong></p>
  
  <p>Can someone help me to translate this to Javascript. A working fiddle here : <a href="http://jsfiddle.net/En4Ka/" rel="nofollow">Fiddle</a></p>
  
  <pre><code>$(document).ready(function(){
  $('select').on('change',function(){
  var val = $(this).val();
  $('div').hide();
  $('.' + val).css('display','block'); }).change();
  });
  </code></pre>
  
  <p><strong>Question 2</strong></p>
  
  <p>Is there a way to find what's going on with website's scripts and how they render. Because Im find it hard to see whats blocking the above script. Thanks</p>