title: How can I set the Name attribute of an input field using Jquery?
body: <p>Quick question... I was wondering how I can get this to happen.</p>
  
  <p>Okay I have an input field like such:</p>
  
  <pre><code>&lt;input type="text" id="input1" size="10" name="" value="" class="checked other_amount" onfocus="Toggle('radio1', 'input1');" /&gt;
  </code></pre>
  
  <p>I would like to click on a div with an ID of #resetPrompt and fill the empty name attr from the input with "other_amount"</p>
  
  <p>I'm out of ideas its been a long day</p>
  
  <p>Thanks guys,</p>
  
  <p>Matt</p>