title: passing variable value to href argument in anchor tag
body: <p>how to pass the variable value to href argument in anchor tag.</p>
  
  <pre><code>&lt;body&gt;
  &lt;script&gt;
  var id = "10";
  $('a_tag_id').attr('href','http://www.google.com&amp;jobid='+id);
  &lt;/script&gt;
  
  
  &lt;a id="a_tag_id"&gt;something_here&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I want anchor tag to look like this after the above code is executed.</p>
  
  <pre><code>&lt;a href="http://www.google.com&amp;jobid=10"&gt;something_here&lt;/a&gt;
  </code></pre>
  
  <p>But somehow the above code is not working. Is there anything wrong I am doing?</p>