title: jQuery change button attributes
body: <p>I have a button like this:</p>
  
  <pre><code>&lt;input type="button" name="btn" id="btn" value="Proceed"/&gt;
  </code></pre>
  
  <p>After all processes and get the expected result, I need to apply some changes on this button.</p>
  
  <ol>
  <li>Change the value of this button.</li>
  <li>Add something to direct the current page to another one.</li>
  </ol>
  
  <p>I know I can do the first goal using the code below:</p>
  
  <pre><code>$('#btn').attr('value','newValue');
  </code></pre>
  
  <p>But for the second one, I need something like our previous codes in JavaScript as below:</p>
  
  <pre><code>onclick="window.location.href='newPage.htm'";
  </code></pre>
  
  <p>Help me please.</p>