>  I'm trying exactly the same.
>  $("input:checkbox:checked"); returns a set of jQuery elements
>  $("input:checkbox:checked").val(); returns the value of the first element in
>  the set.
>
>  I really wanted to get an array with all the values, or even a string,
>  without the need to iterate over each of the elements.


var valArray = $('input:checkbox').serializeArray();

'tis beautiful!

Reply via email to