I need to store some input in a hidden field, so when I print the post-request, I get:
Array ( [0]=>1 [1]=>2 [2]=>3 )
I already tried:
var elems = [];
elems.push['1'];
elems.push['2'];
elems.push['3'];
$('#input_hidden_field').val(elems);
But it does not work, anybody could help me with this?
valof an input field. What do you want to go in the field? Do you want the value formatted?"1,2,3"?