how to set textbox value in jquery
<p>How do I properly load the a certain value into a textbox using jquery?Tried the one below but I get the <code>[object Object]</code> as output. Please enlighten me on this, I'm new to jquery.</p>

<pre><code> proc = function(x,y) {
        var str1 = $('#pid').value;
        var str2 = $('#qtytobuy').value;
     var str3= $('#subtotal').load('compz.php?prodid=' + x + '&amp;qbuys=' + y);
    $('#subtotal').val(str3);
    }
</code></pre>

<p>And here's the html form:</p>

<pre><code>&lt;form name="yoh" method="get"&gt; 
Product id: &lt;input type="text" name="pid"  value=""&gt;&lt;br/&gt;

Quantity to buy:&lt;input type="text" name="qtytobuy"  value="" onkeyup="proc(document.yoh.pid.value, this.value);"&gt;&lt;/br&gt;

Subtotal:&lt;input type="text" name="subtotal" id="subtotal"  value=""&gt;&lt;/br&gt;
&lt;div id="compz"&gt;&lt;/div&gt;

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