title: i want to set the <a> href with the textbox value after i click on #gen?
body: <p>So this is what i have:</p>
  
  <p>a textbox, label as a link with id of #gen, and an anchor.</p>
  
  <p>what ever i set in the texbox, should transfer to the anchor href attribute after i click on #gen label. </p>
  
  <p>im PRETTY sure i just about have this correct. lol it's driving me nuts why it's not working!</p>
  
  <p>html:</p>
  
  <pre><code>&lt;input type='text' value='' /&gt;
  &lt;label id='gen'&gt;Generate&lt;/label&gt;
  &lt;/br&gt;&lt;/br&gt;
  &lt;a href=''&gt;Download&lt;/a&gt;
  </code></pre>
  
  <p>JQuery:</p>
  
  <pre><code>var textbox=$('input[type="text"]'); //texbox target into a var// 
  var address=$(textbox).val(); // var address//getting Vaue of textbox. Use it for address into link. 
  
  $('#gen').click( function(){
    $('a').attr('href', address);
    //$(textbox).val('Download Ready!');
  });
  </code></pre>
  
  <p>oh yea, i used  to have a value in the texbox set but i took it off cuz that would transfer to the anchor href.</p>
  
  <p>Thanks in advance guys!</p>