title: How to redirect to a particular link if checkbox is checked using javascript?
body: <p>How to redirect to a particular link if checkbox is checked using javascript?</p>
  
  <p>I am doing this but its not working for me..</p>
  
  <pre><code>&lt;input type="checkbox" name="yousendit" id="yousendit" value="1" onselect="return yousendit();"/&gt;
  
  &lt;script type=javascript&gt;
  function yousendit()
  {
          if(document.getElementById('yousendit').checked== "checked")
          {
              window.location='https://www.yousendit.com/dropbox?dropbox=mydomain';
              return false;
          }
          return true;
  
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Please help</p>