How to add value to specific form's input through jQuery
<p>Given this HTML:</p>

<pre><code>&lt;form id="formx"&gt;
  &lt;input type="text" value="" /&gt;
&lt;/form&gt;
</code></pre>

<p>And this JavaScript:</p>

<pre><code>$(function() {
  $("#formx&gt;input").attr('value') = "my text";
})
</code></pre>

<p>Why isn't it working? <a href="http://jsfiddle.net/ubZbZ/" rel="nofollow">Here's</a> a JSFiddle.</p>
