Entering a span value into the input
Building off of Danny's answer, if you have access to the HTML, you can add a class to each of your span tags and bind an event to that class:

&lt;span id="spanval1" class="spanval"&gt;1&lt;/span&gt;
&lt;span id="spanval2" class="spanval"&gt;2&lt;/span&gt;
&lt;span id="spanval3" class="spanval"&gt;3&lt;/span&gt;


The event call can become more generic by using the event's local context 'this'. From the .bind() documentation:


  Within the handler, the keyword this refers to the DOM element to which the handler is bound. To make use of the element in jQuery, it can be passed to the normal $() function.


'this' inside of the click event will be the DOM element that was clicked on that caused the event to fire. Then you would need only the following to setup the click event for all of the elements with the class 'spanval':

$(".spanval").click(function(){
    $('#hourvalue').val($(this).text());
});


And with the rest of the script:

$(document).ready(function() {

   $(".spanval").click(function(){
       $('#hourvalue').val($(this).text());
   });

   $('.hour_dropdown').hide();

   $("#more").click(function() {
       $('.hour_dropdown').fadeToggle(200);
   });

});​