title: How do I pass a jQuery value to a text box?
body: <p>I have a function <br></p>
  
  <pre><code>$(function(){
      $("#divcalendarcolor  a").click(function(){
          var key = $(this).attr("key");
          alert(key);
          //$('input:textbox').val(key);
          //$('input[id=RemainderColor').val($('#divcalendarcolor  a').val());
      })
  });
  </code></pre>
  
  <p>I want to pass the "key value" as the value to a text box. <br></p>
  
  <pre><code>&lt;div class="input text"&gt;
      &lt;label for="RemainderColor"&gt;Color&lt;/label&gt;
      &lt;input type="textbox" id="RemainderColor" value="" maxlength="20" name="data[Remainder][Color]"&gt;
  &lt;/div&gt;
  </code></pre>