title: Change/Replace Href parameter with jquery
body: <p>I have a URL parameter that I want to replace based on whether a checkbox has been checked:</p>
  
  <pre><code>&lt;input id="acknowledge" type="checkbox" checked="checked" name="acknowledge" tabindex=""&gt;I accept
  
  &lt;a href="p_add_institution?id=55&amp;p_acknowledge=Y" class="stronglink" id="add-institution"&gt;Add another institution&lt;/a&gt;
  </code></pre>
  
  <p>I want to replace p_acknowledge parameter to be p_acknowledge=N if the checkbox is not checked and p_acknowledge=Y if it is checked.</p>
  
  <p>It always return p_add_institution?id=55&amp;p_acknowledge=Y even if the checkbox is not checked.</p>
  
  <p>Also, when I hover over the link, I want to have the proper URL showing up as well.</p>
  
  <p><a href="http://jsfiddle.net/u89usjnj/5" rel="nofollow">http://jsfiddle.net/u89usjnj/5</a></p>
  
  <p>Any help would be appreciated and if anyone can explain why it the parameter is not switching to N</p>
  
  <p>Thanks</p>