title: dynamically change required atributte for html5 input control
body: <p>I have an input control which is a required field. However, I want to use javascript to dynamically change the required attribute so it can become NOT required. However, it doesn't work. Any idea how to make it work?</p>
  
  <pre><code>window.onload = function(){
      document.getElementById("website").setAttribute("required","false");
  }
  
  &lt;input id="website" type="url" required&gt;
  </code></pre>