About my Java Code Function : http://jsfiddle.net/MrBigglesWorth/Lwxoeyyp/408/ This code is suppose to save the checkboxs I've ticked after clicking the Save button. Currently that is working but only for one Button. I'm trying to get it to work on all of them to allow me to check them all and save and I plan on adding more than 9 buttons.

    Trying to pass through ID's through a function. Not sure how to do it though.

when I click save on it with more than one of the boxs checked, it only keeps the first one checked cause that has the ID box1  is what the javascript is calling in the function. What Code do I need and how do I go about using this function for each btn. I was thinking of a onclick with .this might work but I am not sure.
 

