title: JQuery Onclick get value from span and add it to input value
body: <p>I have a jquery click event setup:</p>
  
  <pre><code>$(".clickhere").click(function(){
      ...
  });
  </code></pre>
  
  <p>I also have a span with an id of <code>spanval</code>.</p>
  
  <pre><code>&lt;span id="spanval"&gt;1&lt;/span&gt;
  </code></pre>
  
  <p>finally I have a form with an <code>input</code>...</p>
  
  <pre><code>&lt;input id="spanvalue" name="spanvalue" value="whatever_the_value_of_the_span_is" /&gt;
  </code></pre>
  
  <p>So, what I need to do is the following:</p>
  
  <p>If class of <code>clickhere</code> is clicked then get the text in the <code>span</code> and put it in the <code>spanvalue</code>'s value.</p>