SyntaxFix
Write A Post
Hire A Developer
Questions
The same as David's, but without attr()
$('<input>', { type: 'hidden', id: 'foo', name: 'foo', value: 'bar' }).appendTo('form');