1. $(function() {
  2. $('body').append(
  3. $('<input/>')
  4. .attr('type', 'hidden')
  5. .attr('name', 'foo')
  6. .val('some value')
  7. );
  8. });
  9.  
  10. HiddenField field = new HiddenField();
  11. field.ID = "HiddenField1";
  12. field.Value = "SomeValue";
  13. (this.Page.FindControl("form1") as HtmlForm).Controls.Add(field);