title: GetElementById can't get value
body: <p>Do you know why this</p>
  
  <pre><code>function deleteInputOnClick(input){
      champ = document.getElementById(input);
      if(champ.value =='E-mail'){
          champ.value = "";
      }
  }
  </code></pre>
  
  <p>works but this way</p>
  
  <pre><code>function deleteInputOnClick(input){
      champ = document.getElementById(input).value;
      if(champ=='E-mail'){
          champ= "";
      }
  }
  </code></pre>
  
  <p>it doesn't ?</p>
  
  <p>It's probably a stupid little error but I really don't see where it could be.</p>
  
  <p>Thank's</p>