Combination of two previous answers:
var selected = [];
$('#checkboxes input:checked').each(function() {
selected.push($(this).attr('name'));
});
More Related Contents:
- Toggle Checkboxes on/off
- Using jquery to get all checked checkboxes with a certain class name
- jQuery selector for the label of a checkbox
- jQuery how to find an element based on a data-attribute value?
- Why is my jQuery :not() selector not working in CSS?
- Access the css “:after” selector with jQuery [duplicate]
- use jQuery’s find() on JSON object
- How do I check/uncheck all checkboxes with a button using jQuery?
- jQuery select all except first
- Does jQuery do any kind of caching of “selectors”?
- jQuery: select an element’s class and id at the same time?
- jQuery attribute name contains
- Efficient, concise way to find next matching sibling?
- jQuery scrollTop not working in Chrome but working in Firefox
- Limit Checkbox amount
- First word selector
- jQuery select by class VS select by attribute
- How to check if an element does NOT have a specific class?
- jQuery set checkbox checked
- jQuery checkbox event handling
- A cleaner way to select by multiple possible attribute values?
- jQuery: select all elements of a given class, except for a particular Id
- Performance of jQuery selector with context
- Get the selected option id with jQuery
- Jquery find all ids starting with a string?
- jQuery: using a variable as a selector [duplicate]
- What JQuery selector excludes items with a parent that matches a given selector?
- How to use placeholder as default value in select2 framework
- Performance differences between using “:not” and “.not()” selectors?
- How do I select an element with special characters in the ID?