There are multiple methods to do that:
Method 1:
alert($('.checkbox_class_here:checked').size());
Method 2:
alert($('input[name=checkbox_name]').attr('checked'));
Method: 3
alert($(":checkbox:checked").length);
More Related Contents:
- Get checkbox value in jQuery
- Prevent users from submitting a form by hitting Enter
- How to retrieve checkboxes values in jQuery
- Clear form fields with jQuery
- How to limit the number of selected checkboxes?
- Submit form with Enter key without submit button? [duplicate]
- How to add additional fields to form before submit?
- Prevent redirect after form is submitted
- How to use jQuery to add form elements dynamically
- jQuery checkbox event handling
- HTML5 textarea placeholder not appearing
- HTML5 validation before ajax submit
- Find all unchecked checkboxes in jQuery
- jQuery html attribute not working in IE
- Force a checkbox to always submit, even when unchecked
- how to get source of a page
- Slide down button to show text HTML CSS
- Using the HTML5 “required” attribute for a group of checkboxes?
- Find out whether radio button is checked with JQuery?
- JQuery ui – date picker, disabling specific dates
- How do I auto-hide placeholder text upon focus using css or jquery?
- Twitter Bootstrap Use collapse.js on table cells [Almost Done]
- Adding rows dynamically with jQuery
- switch audio source with jquery and HTML5 audio tag
- Select elements without any class [duplicate]
- JQuery data selector not updating with .data
- How to create a diagonal line within a table cell?
- How add spaces between Slick carousel item
- jQuery web page height
- jQuery: find input field closest to button