JavaScript
[js] form submit 전에 input 추가하기
수표
2020. 4. 6. 11:56
var subForm = document.getElementById('sub_form');
var input = document.createElement('input');
input.type = 'hidden';
input.name = 'data_1';
input.value = 15;
subForm.appendChild(input);
subForm.submit(); //form Submit