title: How to add/change param value to url using jquery
body: <p>I am trying to add two parameters to the url (in the address bar).</p>
  
  <p>Basically a user click this link from a different location <code>&lt;a href="player.php"&gt;open player&lt;/a&gt;</code></p>
  
  <p>I need to automatically load the the latest show from that list of shows displayed, the show is shown every day so i do not know the episode number.</p>
  
  <p>the address bar needs to be like this when I load the page <code>http://localhost/player.php?v=11145&amp;a=true</code></p>
  
  <p>I have this </p>
  
  <pre><code>var autoplay = "$('.link:first').attr('href');
  var loadUrl = "http://localhost/player.php";
  or 
  var loadUrl = window.location.href;
  </code></pre>
  
  <p>but not sure how to load and attach the params. Any suggestions of any good techns to do this would be good</p>