jquery text input box pass to variable
<p>This is my first time using jquery and while this is a fairly simple task I'm stuck already.
I've got a input box with the time of day in it. I would like to create a button to grab the time and send it to a variable (setTime) so I can use the time elsewhere in the script.
However I'm having trouble the variable to pass, I've added an alert window but all I get is either a blank alert or an "undefined" alert.
The first line <p> Start Time.... works fine its the setTime stuff that's broken.</p>

<p>Page header: 
<code>setTime = $('#setTime').text();</code>
$('#formTime').timeEntry({show24Hours: true});</p>

<p>Page body:</p>

<pre><code>&lt;p&gt;Start Time &lt;input type="text" size="2" id="formTime" class="spinners" value="" /&gt; &lt;/p&gt;

    &lt;input type="button" value="Set Time" onclick="$('#setTime').val('#formTime');" /&gt;
    &lt;input type="button" value="Show Date" onclick="alert(setTime);" /&gt; 
</code></pre>

<p>Thanks</p>
