Last Updated: February 25, 2016
·
10.1K
· vero4ka

Get an array of checked checkboxes values using jQuery

$('#airlines input:checked').map(function(){
    return $(this).val();
}).get();

// result: ["UN", "SU"]

related gist: https://gist.github.com/ctrl-alt-delete/9772283