I have several checkboxes with a name array and I want the output of the checked boxes to be a variable with a comma separated list.
<input type="checkbox" name="example[]" value="288" />
<input type="checkbox" name="example[]" value="289" />
<input type="checkbox" name="example[]" value="290" />
For example if the first and last box are selected the output will be:
var output = "288,290";
How can I do this with jQuery?