title: jQuery val function not working on a hidden field?
body: <p>This is my <code>HTML</code>code:</p>
  
  <pre><code>&lt;div style='display:none;' id='allformid'&gt;
      &lt;div&gt;
          &lt;form action='#'&gt;
                &lt;input type='text' name='name' id='named'/&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And this is my <code>jQuery</code> code to set the value of the input text box:</p>
  
  <pre><code>$("#allformid  #named").val('abcd');
  </code></pre>
  
  <p>This <code>jQuery</code> code is correct, but the form value is not changed.</p>