title: How to pass variable on href?
body: <p>I am trying to give another variable when <code>href=""</code></p>
  
  <pre><code>&lt;a href="a.html" id="a"&gt;Hello&lt;/a&gt;
  </code></pre>
  
  <p>Above is my code.</p>
  
  <p>I want to pass value <code>apple</code> named <code>fruit</code> variable when going to <code>a.html</code>. How can I do this in JavaScript or jQuery?</p>