how do i change the value of an input field with jquery?
<p>i'm trying to use jquery to change the value of an input text box, but it's not working,
here is my code...</p>

<pre><code>    &lt;form method="get"&gt;
            &lt;input id="temp" type="text" name="here" value="temp value" /&gt;
            &lt;input class="form" type="radio" value="1" name="someForm" /&gt; Enter something
            Here: &lt;input id="input" type="text" name="here" value="test value" /&gt;
    &lt;/form&gt;

    &lt;script&gt;

    $(document).ready(function () {
        $('.form').click(function () {
            var newvalue = $("#input").val();
            $("#temp").val(newvalue);
            $("#input").val($("#temp").val());
        });
    });

&lt;/script&gt;
</code></pre>

<p>the value of the "#input" text box is not changing!!!!!!
why is that???
what am i missing???
thanks a 10 million in advance
p.s. the value of the text box is changing, but the value attribute of the input is NOT!!!
even if i write...</p>

<pre><code>var value = $("#temp").val();
$("#input").attr("value", value);
</code></pre>
