get input alue jquery code example
Example 1: jquery create input hidden
$('<input>').attr({
type: 'hidden',
id: 'foo',
name: 'bar'
}).appendTo('form');
Example 2: javascript querySelector change input value
var element = document.getElementById('element_id');
element.value = 'random_value';