Create a hidden field in JavaScript
<p>How do you create a hidden field in JavaScript into a particular form ? </p>

<pre><code>    &lt;html&gt;
    &lt;head&gt;
      &lt;script type="text/javascript"&gt;
      var a =10;
function test() {
      if (a ==10)  {
        //  ... Here i need to create some hidden field for form named = chells
      }
}
      &lt;/script&gt;  
    &lt;/head&gt;   
    &lt;body &gt;
      &lt;form id="chells" name="formsdsd"&gt;
      &lt;INPUT TYPE=BUTTON OnClick="test();"&gt;
     &lt;/form&gt; 
    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>
