1<input type="hidden" name="attachments[]">
2
3$('input:hidden[name=attachments]').val(attachArray);
4
5 //////////////////////// OR ////////////////
6<input type="hidden" name="select_day" id="select_day_main">
7
8$('#select_day_main').val(data);