Given that your checkboxes all have an
attribute beginning with
you can use the CSS "starts with" selector to pick the checkboxes up. In addition you can use the
selector. For jQuery the script would look like:
From there you can map the selected elements based on whatever property you like, and concatenate them into a string. Here's an example I threw together
], you can replace the
bit with whatever you need to be displaying.