You need to put in array Program Checked Checked.

var Program= [];
 For (var i= 0; i <
ten; I ++)
  $ ('# Pre_content5'). Append ('<
INPUT TYPE= "CHECKBOX" ID= "CHECKBOX" name= "sam" value= "'+ i +'" />

I know that with jQuery you can select all the Chesed

$ ('Input: Checkbox: Checked')

How exactly are Chekboxers fill in an array? Nr when pressing the button.