I’m have a set of checkboxes and an array that contains the index of which checkboxes should be selected. I’m trying to loop through the array and for each index in it. I made a sample jsFiddle to give you guys an idea of what I’m trying to do. I have the JQuery library also if that makes things easier. http://jsfiddle.net/7EetA/1/
Share
Try this:
No jQuery needed! jsFiddle example