I have a couple of checkbox with the name etapes. I'd like to get all the checked etapes's value and store it in a single string.
So tried this :
$('[name="etapes"]:checked').each(function() {
indexer = indexer + 1;
if (indexer == 1) selectedEtapes = $(this).val();
else selectedEtapes = selectedEtapes + "," + $(this).val();
});
but it didn't work. SO how can I fix this issue?