title: Is it possible to insert jQuery variable on an element's attribute?
body: <p>I would just like to to ask if its possible to insert a jQuery variable on an attribute. Here is my sample code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
        $(function() {
  
     var url = 'http://www.google.com';
     var data = '?one=1&amp;two=2&amp;three=3';
  
  });
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;    
        &lt;a href="jquery var"&gt;Click here&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I need to put the jQuery var value of the href. How can I do that?
  Thank you in advance. ;)</p>