Can I add hidden form fields at submit time?
<p>I'm trying to add an additional hidden form field when submitting a form but can't see it in the POST'ed form data after submission.</p>

<pre><code>$('#myform').submit(function(){        
var hiddenInput = $('&lt;input data-role="none"/&gt;').attr({type:'hidden',name:'myname',value: 'somevalue'});
 $('#myform').appendTo(hiddenInput);
});
</code></pre>

<p>The form submits but does not include the hidden field.</p>
