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