title: How to append query string to current url using jquery
body: <p>Can anybody guide me how to append query string to current url using jquery but it should not get redirected to the new page. I mean it should simply get appended to the current url.
  I have tried the following code but it's not working.</p>
  
  <pre><code> $(".package-book a").click(function(){
   window.location.url = "?id=" + $(this).val(&lt;?php the_title(); ?&gt;);
    )};
  </code></pre>