2form
by bvotcode
HTML
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<h4>Example</h4>
<form id="aaa">
<input name="test1" value="1">
<button type="submit">Save</button>
</form>
<form id="bbb">
<input name="test2" value="2">
<button type="submit">Send</button>
</form>
JavaScript
$('<input>').attr({
id: 'test-value',
name: 'test-value'
}).appendTo('form');
$('#test-value').val('demo demo text')