jquery make a hidden field code example
Example 1: jquery create input hidden
$('<input>').attr({
type: 'hidden',
id: 'foo',
name: 'bar'
}).appendTo('form');
Example 2: jquery set hidden field value
$("#texens").val("tinkumaster");
$('<input>').attr({
type: 'hidden',
id: 'foo',
name: 'bar'
}).appendTo('form');
$("#texens").val("tinkumaster");