stackoverflow.com $('<input>').attr({ type: 'hidden', id: 'foo', name: 'foo[]', value: 'bar' }).appendTo('form'); とやれば、 動的に <input type='hiddne' id='foo' name='foo[]' value='bar'></input> ができる。 jQuery最高の教科書 作者: 株式会社シフトブレイン出版社/メーカー: SBクリエイティブ発売日: 2013/11/26メディア: 単行本この商品を含むブログ (5件) を見る
![jQueryで動的にhiddenのinputタグを生成する方法 - 万年素人からHackerへの道](https://cdn-ak-scissors.b.st-hatena.com/image/square/703bd7894bb1c6599b2e806b49a858792cf28ca3/height=288;version=1;width=512/https%3A%2F%2Fimages-fe.ssl-images-amazon.com%2Fimages%2FI%2F51AP3%252BEyjQL._SL160_.jpg)