title: Change section opacity onclick?
body: <p>I'm trying to change the opacity of a  with javascript when a div is clicked.</p>
  
  <p>Here is my html:</p>
  
  <pre><code>&lt;section id="section2"&gt;
  &lt;img onclick="one()" class=img src="1.png" /&gt;
  &lt;/section&gt;
  &lt;section id="6-1"&gt;
      Hello World
  &lt;/section&gt;
  </code></pre>
  
  <p>And my javascript:</p>
  
  <pre><code>function one() {
      document.getElementById('6-1').style.opacity = '1';
      document.getElementById('section2').style.opacity = '0';
  }
  </code></pre>
  
  <p>For some reason, its not working</p>
  
  <p>Thanks!</p>