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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…