Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set value array input jquery

<input type="hidden" name="attachments[]">
  
$('input:hidden[name=attachments]').val(attachArray);

     //////////////////////// OR ////////////////
<input type="hidden" name="select_day" id="select_day_main">

$('#select_day_main').val(data);
 
PREVIOUS NEXT
Tagged: #set #array #input #jquery
ADD COMMENT
Topic
Name
7+1 =