It depends on what you are trying to do. For instance -
var list = '' $('#checkboxes input[type=checkbox]:checked').each(function(){ list += $(this).val() + '-' });
It will give you a list with delimiters separated by a dotted line, but if you want to do this to process / submit the form, check .serialize()
source share