Checkbox Variable

Checkbox Variable

I am creating a jquery/ajax form and I'm having an issue with getting information from a checkbox. I believe my issue is with passing the variable. All the other fields in the form are working properly except for the checkboxes. Below is a snippet of the code where I am creating my variables (var name is an input/text field, var paperstock is a list/menu, and var finishing is the checkboxes in question:

[code]

var name = $('input[name=name]');

var paperstock = $('select[name=paperstock] option:selected');

var finishing = $('select[name=finishing] option:selected');


[/code]

 


This is a snippet of the html form (just the checkbox snippet):


[code]


<input type="checkbox" name="finishing" value="1" /> <label class="checkboxtext">Saddle Stitching</label>

<input type="checkbox" name="finishing" value="2" /> <label class="checkboxtext">Folding</label> 

<input type="checkbox" name="finishing" value="3" /> <label class="checkboxtext">Scoring</label> 


[/code]


In the email the form sends, I get all the information the user enters, except the checkboxes come up as 'undefined'.


Any help would be very much appreciated. 


Regards.